< prev index next >

test/runtime/modules/PatchModule/PatchModuleCDS.java

Print this page

        

@@ -50,11 +50,11 @@
             "-Xlog:class+path=info",
             "-version");
         new OutputAnalyzer(pb.start())
             .shouldContain("ro space:"); // Make sure archive got created.
 
-       // Case 2: Test that only jar file in --patch-module is supported for CDS dumping
+        // Case 2: Test that directory in --patch-module is supported for CDS dumping
         // Create a class file in the module java.base.
         String source = "package javax.naming.spi; "                +
                         "public class NamingManager { "             +
                         "    static { "                             +
                         "        System.out.println(\"I pass!\"); " +

@@ -71,11 +71,11 @@
             "-Xshare:dump",
             "--patch-module=java.base=" + System.getProperty("test.classes"),
             "-Xlog:class+path=info",
             "-version");
         new OutputAnalyzer(pb.start())
-            .shouldContain("--patch-module requires a regular file during dumping");
+            .shouldContain("ro space:"); // Make sure archive got created.
 
         // Case 3a: Test CDS dumping with jar file in --patch-module
         BasicJarBuilder.build("javanaming", "javax/naming/spi/NamingManager");
         String moduleJar = BasicJarBuilder.getTestJar("javanaming.jar");
         pb = ProcessTools.createJavaProcessBuilder(
< prev index next >