This fails on ppc64, both little and big endian. Does not repro on amd64, arm64. Test on ieee-long-double profile pending. Sample log from LE: Time: 48.752 There were 2 failures: 1) testUnionCallstack(com.sun.jna.DirectArgumentsMarshalTest) junit.framework.ComparisonFailure: expected:<...2: 3, dummyDouble2: [4, union1.intValue: 5, union2.doubleValue: 6]> but was:<...2: 3, dummyDouble2: [0, union1.intValue: 2117122384, union2.doubleValue: 0]> at junit.framework.Assert.assertEquals(Assert.java:100) at junit.framework.Assert.assertEquals(Assert.java:107) at junit.framework.TestCase.assertEquals(TestCase.java:260) at com.sun.jna.ArgumentsMarshalTest.testUnionCallstack(ArgumentsMarshalTest.java:708) 2) testUnionCallstack(com.sun.jna.ArgumentsMarshalTest) junit.framework.ComparisonFailure: expected:<...2: 3, dummyDouble2: [4, union1.intValue: 5, union2.doubleValue: 6]> but was:<...2: 3, dummyDouble2: [0, union1.intValue: 2107686280, union2.doubleValue: 0]> at junit.framework.Assert.assertEquals(Assert.java:100) at junit.framework.Assert.assertEquals(Assert.java:107) at junit.framework.TestCase.assertEquals(TestCase.java:260) at com.sun.jna.ArgumentsMarshalTest.testUnionCallstack(ArgumentsMarshalTest.java:708) FAILURES!!! Tests run: 521, Failures: 2 Reproducible: Always
Created attachment 883658 [details] build.log and emerge --info
Not a regression from previous version (5.13.0-r1)
Created attachment 884465 [details, diff] separate-tests.patch (In reply to matoro from comment #2) > Not a regression from previous version (5.13.0-r1) Thanks for all this additional information. It makes it easier for me to provide a solution. However, I don't have ppc64 to test with. May I please ask your help testing the 'attached separate.tests.patch'? You might have seen in the ebuild that it runs java-pkg-simple_src_test() several times. This is because some tests would fail on Gentoo if not run separately. In case the failures persist, I would have to provide a different patch selectively @Ignore'ing the failing tests from those two test classes.
(In reply to Volkmar W. Pogatzki from comment #3) > Created attachment 884465 [details, diff] [details, diff] > separate-tests.patch > > (In reply to matoro from comment #2) > > Not a regression from previous version (5.13.0-r1) > > Thanks for all this additional information. It makes it easier for me to > provide a solution. However, I don't have ppc64 to test with. > > May I please ask your help testing the 'attached separate.tests.patch'? > > You might have seen in the ebuild that it runs java-pkg-simple_src_test() > several times. This is because some tests would fail on Gentoo if not run > separately. > > In case the failures persist, I would have to provide a different patch > selectively @Ignore'ing the failing tests from those two test classes. Just tested this, unfortunately still fails. Also, I tested on ieee-long-double profile, after complete world rebuild, and it still fails. So that is not the cause.
Created attachment 884501 [details] ppc64-skip-tests.patch (In reply to matoro from comment #4) > [...] > Just tested this, unfortunately still fails. > > Also, I tested on ieee-long-double profile, after complete world rebuild, > and it still fails. So that is not the cause. Thanks for testing. So please let's try with that tests skipped. I am attaching the 'ppc64-skip-tests.patch'.
(In reply to Volkmar W. Pogatzki from comment #5) > Created attachment 884501 [details] > ppc64-skip-tests.patch > > (In reply to matoro from comment #4) > > [...] > > Just tested this, unfortunately still fails. > > > > Also, I tested on ieee-long-double profile, after complete world rebuild, > > and it still fails. So that is not the cause. > > Thanks for testing. So please let's try with that tests skipped. I am > attaching the 'ppc64-skip-tests.patch'. I've had such patches rejected before due to rules against conditional patching, https://devmanual.gentoo.org/ebuild-writing/misc-files/patches/index.html#conditional-patching was cited at the time. Maybe it could instead be added to JAVA_TEST_EXCLUDES?
(In reply to matoro from comment #6) > [...] > Maybe it could instead be added to JAVA_TEST_EXCLUDES? Both affected test classes com.sun.jna.DirectArgumentsMarshalTest and com.sun.jna.ArgumentsMarshalTest have 41 tests each but only two of them fail. JAVA_TEST_EXCLUDES would kill them all. I am trying to skip as few tests as possible. In jnr-posix-3.1.16 we did this with sed. However using patches instead if sed is regarded more robust. I would have liked to try doing it with "junit.Assume" but this seems not available for junit3 tests. You need not merge the patch, only test if the remaining tests would pass. I would then create a PR.
(In reply to Volkmar W. Pogatzki from comment #7) > (In reply to matoro from comment #6) > > [...] > > Maybe it could instead be added to JAVA_TEST_EXCLUDES? > > Both affected test classes com.sun.jna.DirectArgumentsMarshalTest and > com.sun.jna.ArgumentsMarshalTest have 41 tests each but only two of them > fail. JAVA_TEST_EXCLUDES would kill them all. > I am trying to skip as few tests as possible. In jnr-posix-3.1.16 we did > this with sed. However using patches instead if sed is regarded more robust. > > I would have liked to try doing it with "junit.Assume" but this seems not > available for junit3 tests. > > You need not merge the patch, only test if the remaining tests would pass. I > would then create a PR. Confirmed that tests pass on both endians with this patch.