1 |
commit: 510c51a40d4a0b3e8b09b377af13cec13d9b9811 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Sun Aug 28 06:51:45 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 17:23:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=510c51a4 |
7 |
|
8 |
dev-java/jnr-posix: exclude failing tests on arm |
9 |
|
10 |
Closes: https://bugs.gentoo.org/866692 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/27034 |
13 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
14 |
|
15 |
.../files/jnr-posix-3.1.15-FileTest.patch | 10 -------- |
16 |
dev-java/jnr-posix/jnr-posix-3.1.15.ebuild | 27 ++++++++++++++++++++++ |
17 |
2 files changed, 27 insertions(+), 10 deletions(-) |
18 |
|
19 |
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 |
20 |
index eba2a6fc450a..a186087c626d 100644 |
21 |
--- a/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch |
22 |
+++ b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch |
23 |
@@ -1,15 +1,5 @@ |
24 |
-diff --git a/src/test/java/jnr/posix/FileTest.java b/src/test/java/jnr/posix/FileTest.java |
25 |
-index afadb07..7eb8af7 100644 |
26 |
--- a/src/test/java/jnr/posix/FileTest.java |
27 |
+++ b/src/test/java/jnr/posix/FileTest.java |
28 |
-@@ -8,6 +8,7 @@ import jnr.ffi.Pointer; |
29 |
- import jnr.posix.util.Platform; |
30 |
- import org.junit.BeforeClass; |
31 |
- import org.junit.Test; |
32 |
-+import org.junit.Ignore; |
33 |
- |
34 |
- import java.io.*; |
35 |
- import java.nio.ByteBuffer; |
36 |
@@ -215,7 +216,7 @@ public class FileTest { |
37 |
dir.delete(); |
38 |
} |
39 |
|
40 |
diff --git a/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild |
41 |
index 5902204899ec..4d490fc87f4d 100644 |
42 |
--- a/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild |
43 |
+++ b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild |
44 |
@@ -39,6 +39,10 @@ JAVA_TEST_GENTOO_CLASSPATH="junit-4" |
45 |
JAVA_TEST_SRC_DIR="src/test/java" |
46 |
|
47 |
src_test() { |
48 |
+ sed \ |
49 |
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \ |
50 |
+ -i src/test/java/jnr/posix/FileTest.java || die |
51 |
+ |
52 |
if use ppc64; then |
53 |
# Ignore testMessageHdrMultipleControl |
54 |
# https://bugs.gentoo.org/866199 |
55 |
@@ -49,6 +53,29 @@ src_test() { |
56 |
-i src/test/java/jnr/posix/LinuxPOSIXTest.java || die |
57 |
fi |
58 |
|
59 |
+ if use arm; then |
60 |
+ # https://bugs.gentoo.org/866692 |
61 |
+ sed \ |
62 |
+ -e '/utimensatRelativePath()/i @Ignore' \ |
63 |
+ -e '/utimesDefaultValuesTest()/i @Ignore' \ |
64 |
+ -e '/futimeTest()/i @Ignore' \ |
65 |
+ -e '/utimesTest()/i @Ignore' \ |
66 |
+ -e '/utimesPointerTest()/i @Ignore' \ |
67 |
+ -e '/utimensatAbsolutePath()/i @Ignore' \ |
68 |
+ -e '/futimens()/i @Ignore' \ |
69 |
+ -i src/test/java/jnr/posix/FileTest.java || die |
70 |
+ sed \ |
71 |
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \ |
72 |
+ -e '/ioprioThreadedTest()/i @Ignore' \ |
73 |
+ -e '/testPosixFadvise()/i @Ignore' \ |
74 |
+ -i src/test/java/jnr/posix/LinuxPOSIXTest.java || die |
75 |
+ sed \ |
76 |
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \ |
77 |
+ -e '/testSetRlimitPointerLinux()/i @Ignore' \ |
78 |
+ -e '/testGetRLimitPointer()/i @Ignore' \ |
79 |
+ -i src/test/java/jnr/posix/ProcessTest.java || die |
80 |
+ fi |
81 |
+ |
82 |
JAVA_TEST_EXCLUDES=( |
83 |
# https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.15/pom.xml#L185 |
84 |
# <exclude>**/windows/*Test.java</exclude> |