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

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

Print this page
rev 49650 : [mq]: module_path

*** 60,70 **** System.out.println("Test dumping with --patch-module"); OutputAnalyzer output = TestCommon.dump(null, null, "--patch-module=java.base=" + moduleJar, "PatchMain", "java.lang.NewClass"); ! TestCommon.checkDump(output, "Loading classes to share"); TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.base=" + moduleJar, "PatchMain", "java.lang.NewClass") --- 60,71 ---- System.out.println("Test dumping with --patch-module"); OutputAnalyzer output = TestCommon.dump(null, null, "--patch-module=java.base=" + moduleJar, "PatchMain", "java.lang.NewClass"); ! output.shouldHaveExitValue(1) ! .shouldContain("Cannot use the following option when dumping the shared archive: --patch-module"); TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.base=" + moduleJar, "PatchMain", "java.lang.NewClass")
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchJavaBase.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File