Setting nativepath correctly

Igor Henrique Soares Nunes igor.nunes at
Wed Nov 16 17:51:30 UTC 2016

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/" fails because $TESTNATIVEPATH is empty, and also other ".java" (like "./hotspot/test/compiler/calls/") 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/" still fails.

Otherwise, if I set nativepath to  "-nativepath:./build/linux-ppc64le-normal-server-release/support/test/hotspot/jtreg/native/bin/", 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".


Igor Nunes

More information about the jtreg-use mailing list