Setting nativepath correctly
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Nov 16 18:04:29 UTC 2016
On 11/16/16 9:51 AM, Igor Henrique Soares Nunes wrote:
> Hi all,
>
> I'm currently working on openjdk9 (hs) and some of my tests are failing (error) because of wrong nativepath.
>
> See the following line:
> JT_JAVA=/usr/lib/jvm/java-8-openjdk-amd64/ jtreg-tip/bin/jtreg -agentvm -Xmx40m -conc:10 -va -a -ignore:quiet -w:test/hotspot/JTwork -r:test/hotspot/JTreport -jdk:./build/linux-x86_64-normal-server-release/jdk/ -timeout:3 ./hotspot/test/
>
> In this first command nativepath is not being set. So that "./hotspot/test/runtime/StackGuardPages/testme.sh" fails because $TESTNATIVEPATH is empty, and also other ".java" (like "./hotspot/test/compiler/calls/TestDirtyInt.java") tests fail because a nativepath is being expected in -Dtest.nativepath.
>
> If I set nativepath to "-nativepath:./build/linux-ppc64le-normal-server-release/support/test/hotspot/jtreg/native/lib/", tests that expect a correct path in -Dtest.nativepath, start to pass. But "./hotspot/test/runtime/StackGuardPages/testme.sh" still fails.
>
> Otherwise, if I set nativepath to "-nativepath:./build/linux-ppc64le-normal-server-release/support/test/hotspot/jtreg/native/bin/", testme.sh passes but the others fail.
>
> How can I solve this? For now I am copying the "./build/linux-ppc64le-normal-server-release/support/test/hotspot/jtreg/native/bin" files to "./build/linux-ppc64le-normal-server-release/support/test/hotspot/jtreg/native/lib" so that I can set nativepath to "jtreg/native/lib".
>
> Regards,
>
> Igor Nunes
It sounds like a test bug if different tests require different settings
for -nativepath.
-- Jon
More information about the jtreg-use
mailing list