test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/TwoJars.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/TwoJars.java

test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/TwoJars.java

Print this page

        

*** 85,100 **** TestCommon.list("javax/naming/spi/NamingManager"), "--patch-module=java.naming=" + moduleJar2 + File.pathSeparator + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.spi.NamingManager"); ! TestCommon.checkDump(output, "Loading classes to share"); ! TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar2 + File.pathSeparator + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", ! "PatchMain", "javax.naming.spi.NamingManager") ! .assertNormalExit("I pass"); } } --- 85,103 ---- TestCommon.list("javax/naming/spi/NamingManager"), "--patch-module=java.naming=" + moduleJar2 + File.pathSeparator + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.spi.NamingManager"); ! output.shouldHaveExitValue(1) ! .shouldContain("Cannot use the following option when dumping the shared archive: --patch-module"); ! output = TestCommon.execCommon( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar2 + File.pathSeparator + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", ! "PatchMain", "javax.naming.spi.NamingManager"); ! output.shouldHaveExitValue(0) ! .shouldContain("CDS is disabled") ! .shouldContain("I pass!"); } }
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/TwoJars.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File