RFR: 8352276: Skip jtreg tests using native executable with libjvm.so/libjli.so dependencies on static JDK

David Holmes dholmes at openjdk.org
Thu Mar 20 06:48:08 UTC 2025


On Tue, 18 Mar 2025 18:57:04 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

> Please review this PR that adds `@requires !jdk.static` to tests, thanks.
> 
> - runtime/StackGap/TestStackGap.java
> - runtime/StackGuardPages/TestStackGuardPages.java
> - runtime/TLS/TestTLS.java
> - runtime/jni/daemonDestroy/TestDaemonDestroy.java
> - runtime/jni/getCreatedJavaVMs/TestGetCreatedJavaVMs.java
> - jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java
> - jdk/jni/nullCaller/NullCallerTest.java
> - jdk/tools/launcher/JniInvocationTest.java
> 
> These tests use native executables that have dependencies on `libjvm.so`, `libjli.so`, etc. Static JDK does not provide the separate JDK/VM shared libraries, hence cannot support the specific testing mode.

Okay - disabling these tests for now seems prudent. Thanks

-------------

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24103#pullrequestreview-2701457909


More information about the core-libs-dev mailing list