diff --git a/test/jdk/ProblemList-AotJdk.txt b/test/jdk/ProblemList-AotJdk.txt index c01f9893d2e..20960652dcf 100644 --- a/test/jdk/ProblemList-AotJdk.txt +++ b/test/jdk/ProblemList-AotJdk.txt @@ -39,10 +39,6 @@ java/lang/module/ModuleDescriptorHashCodeTest.java 0000000 generic- # parameters will always cause the class java/lang/invoke/MethodHandleStatics to be initialized java/lang/invoke/DumpMethodHandleInternals.java 0000000 generic-all -# The test uses "--add-modules jdk.internal.le" during production. -# So the test is incompatible with AOT_JDK testing because because all runs must have consistent module options on the command line. -java/lang/IO/IO.java 0000000 generic-all - # This test checks for a warning message that's already printed by # sun.util.locale.BaseLocale. during the training run. Because BaseLocale is aot-initialized, # this message will not be printed in the production run. diff --git a/test/jdk/java/lang/IO/IO.java b/test/jdk/java/lang/IO/IO.java index 2b13657b58e..cff64146cd6 100644 --- a/test/jdk/java/lang/IO/IO.java +++ b/test/jdk/java/lang/IO/IO.java @@ -149,7 +149,7 @@ public class IO { } """); } - var pb = ProcessTools.createTestJavaProcessBuilder(file.toString()); + var pb = ProcessTools.createTestJavaProcessBuilder("-Xlog:aot=off", "-Xlog:cds=off", file.toString()); OutputAnalyzer output = ProcessTools.executeProcess(pb); assertEquals(0, output.getExitValue()); assertTrue(output.getStderr().isEmpty());