summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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>