diff --git a/test/lib-test/TEST.ROOT b/test/lib-test/TEST.ROOT index 5908b50cb17..21b6fba41f2 100644 --- a/test/lib-test/TEST.ROOT +++ b/test/lib-test/TEST.ROOT @@ -31,6 +31,23 @@ keys=randomness # Minimum jtreg version requiredVersion=7.5.1+1 +# Allow querying of various System properties in @requires clauses +requires.extraPropDefns = ../jtreg-ext/requires/VMProps.java +requires.extraPropDefns.bootlibs = ../lib/jdk/test/whitebox +requires.extraPropDefns.libs = \ + ../lib/jdk/test/lib/Platform.java \ + ../lib/jdk/test/lib/Container.java +requires.extraPropDefns.javacOpts = \ + --add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \ + --add-exports java.base/jdk.internal.misc=ALL-UNNAMED +requires.extraPropDefns.vmOpts = \ + -XX:+UnlockDiagnosticVMOptions \ + -XX:+WhiteBoxAPI \ + --add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \ + --add-exports java.base/jdk.internal.misc=ALL-UNNAMED +requires.properties= \ + jdk.static + # Path to libraries in the topmost test directory. This is needed so @library # does not need ../../ notation to reach them external.lib.roots = ../../ diff --git a/test/lib-test/jdk/test/lib/process/TestNativeProcessBuilder.java b/test/lib-test/jdk/test/lib/process/TestNativeProcessBuilder.java index 6c2f53d31eb..926a5200936 100644 --- a/test/lib-test/jdk/test/lib/process/TestNativeProcessBuilder.java +++ b/test/lib-test/jdk/test/lib/process/TestNativeProcessBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,6 +25,7 @@ * @test * @summary Test the native process builder API. * @library /test/lib + * @requires !jdk.static * @run main/native TestNativeProcessBuilder */