test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java	Fri Apr  6 15:40:37 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/Simple.java	Fri Apr  6 15:40:37 2018

*** 69,84 **** --- 69,85 ---- "-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( ! TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", - "PatchMain", "javax.naming.spi.NamingManager"); output.shouldHaveExitValue(0) ! .shouldContain("CDS is disabled") + .assertSilentlyDisabledCDS(out -> { ! out.shouldHaveExitValue(0) .shouldContain("I pass!"); + }); } }

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