summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-08-28 08:51:45 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-02 20:23:13 +0300
commit510c51a40d4a0b3e8b09b377af13cec13d9b9811 (patch)
tree442a9d3ec27cb07f378647a80766458a7be2f407 /dev-java/jnr-posix
parentdev-java/jffi: exclude failing tests on arm (diff)
downloadgentoo-510c51a40d4a0b3e8b09b377af13cec13d9b9811.tar.gz
gentoo-510c51a40d4a0b3e8b09b377af13cec13d9b9811.tar.bz2
gentoo-510c51a40d4a0b3e8b09b377af13cec13d9b9811.zip
dev-java/jnr-posix: exclude failing tests on arm
Closes: https://bugs.gentoo.org/866692 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27034 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-java/jnr-posix')
-rw-r--r--dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch10
-rw-r--r--dev-java/jnr-posix/jnr-posix-3.1.15.ebuild27
2 files changed, 27 insertions, 10 deletions
diff --git a/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch
index eba2a6fc450a..a186087c626d 100644
--- a/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch
+++ b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch
@@ -1,15 +1,5 @@
-diff --git a/src/test/java/jnr/posix/FileTest.java b/src/test/java/jnr/posix/FileTest.java
-index afadb07..7eb8af7 100644
--- a/src/test/java/jnr/posix/FileTest.java
+++ b/src/test/java/jnr/posix/FileTest.java
-@@ -8,6 +8,7 @@ import jnr.ffi.Pointer;
- import jnr.posix.util.Platform;
- import org.junit.BeforeClass;
- import org.junit.Test;
-+import org.junit.Ignore;
-
- import java.io.*;
- import java.nio.ByteBuffer;
@@ -215,7 +216,7 @@ public class FileTest {
dir.delete();
}
diff --git a/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild
index 5902204899ec..4d490fc87f4d 100644
--- a/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild
+++ b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild
@@ -39,6 +39,10 @@ JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_SRC_DIR="src/test/java"
src_test() {
+ sed \
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \
+ -i src/test/java/jnr/posix/FileTest.java || die
+
if use ppc64; then
# Ignore testMessageHdrMultipleControl
# https://bugs.gentoo.org/866199
@@ -49,6 +53,29 @@ src_test() {
-i src/test/java/jnr/posix/LinuxPOSIXTest.java || die
fi
+ if use arm; then
+ # https://bugs.gentoo.org/866692
+ sed \
+ -e '/utimensatRelativePath()/i @Ignore' \
+ -e '/utimesDefaultValuesTest()/i @Ignore' \
+ -e '/futimeTest()/i @Ignore' \
+ -e '/utimesTest()/i @Ignore' \
+ -e '/utimesPointerTest()/i @Ignore' \
+ -e '/utimensatAbsolutePath()/i @Ignore' \
+ -e '/futimens()/i @Ignore' \
+ -i src/test/java/jnr/posix/FileTest.java || die
+ sed \
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \
+ -e '/ioprioThreadedTest()/i @Ignore' \
+ -e '/testPosixFadvise()/i @Ignore' \
+ -i src/test/java/jnr/posix/LinuxPOSIXTest.java || die
+ sed \
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \
+ -e '/testSetRlimitPointerLinux()/i @Ignore' \
+ -e '/testGetRLimitPointer()/i @Ignore' \
+ -i src/test/java/jnr/posix/ProcessTest.java || die
+ fi
+
JAVA_TEST_EXCLUDES=(
# https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.15/pom.xml#L185
# <exclude>**/windows/*Test.java</exclude>