RFR: 8309303: jdk/internal/misc/VM/RuntimeArguments test ignores jdk/internal/vm/options
Doug Simon
dnsimon at openjdk.org
Thu Jun 8 19:03:53 UTC 2023
On Thu, 8 Jun 2023 18:56:28 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> The `RuntimeArguments` test verifies the VM arguments returned by `jdk.internal.misc.VM::getRuntimeArguments` as expected. This test fails when running with GraalVM as it was created with `jlink --add-options` and the application will always be launched with that additional set of VM options. This PR updates the test to read if 'jdk/internal/vm/options` is present and includle those options in the expected list.
I can confirm the change works on GraalVM but it would make sense to also test it directly in the JDK by creating a test JDK image with jlink that includes VM options.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14383#issuecomment-1583176634
More information about the core-libs-dev
mailing list