test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchJavaBase.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchJavaBase.java	Mon Apr  9 12:06:58 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchJavaBase.java	Mon Apr  9 12:06:57 2018

*** 60,70 **** --- 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"); TestCommon.checkDump(output, "Loading classes to share"); + 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