RFR: 8195129: System.load() fails to load from unicode paths [v2]
David Holmes
david.holmes at oracle.com
Thu May 27 04:14:19 UTC 2021
On 27/05/2021 6:59 am, Gerard Ziemski wrote:
> On Tue, 25 May 2021 09:45:34 GMT, Maxim Kartashev <github.com+28651297+mkartashev at openjdk.org> wrote:
> I tried verifying the test on **macOS** by running:
>
> `jtreg -nr -va -jdk:./build/macosx-x86_64-server-fastdebug/images/jdk test/hotspot/jtreg/runtime/jni/loadLibraryUnicode`
>
> and I get:
>
> `TEST RESULT: Error. Use -nativepath to specify the location of native code`
>
> I looked at the test and thought it was handling loading the native lib on its own, without the test needing to set **nativepath** explicitly. What am I doing wrong?
You always have to set nativepath explicitly for jtreg. The test then
reads the property that jtreg defines using the value of -nativepath:
String testNativePath =
LoadLibraryUnicodeTest.getSystemProperty("test.nativepath");
Cheers,
David
-----
> -------------
>
> PR: https://git.openjdk.java.net/jdk/pull/4169
>
More information about the core-libs-dev
mailing list