--- old/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchJavaBase.java 2018-04-08 23:15:41.367848128 -0700 +++ new/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/PatchJavaBase.java 2018-04-08 23:15:41.079820985 -0700 @@ -62,7 +62,8 @@ 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",