test/hotspot/jtreg/runtime/SharedArchiveFile/PrintSharedArchiveAndExit.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/SharedArchiveFile/PrintSharedArchiveAndExit.java	Tue Oct 23 13:18:23 2018
--- new/test/hotspot/jtreg/runtime/SharedArchiveFile/PrintSharedArchiveAndExit.java	Tue Oct 23 13:18:22 2018

*** 44,64 **** --- 44,64 ---- // (1) With a valid archive opts = (new CDSOptions()) .setUseVersion(false) .addSuffix( "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./" + archiveName, ! "-XX:+PrintSharedArchiveAndExit", "-Xlog:cds", "-version"); CDSTestUtils.run(opts) .assertNormalExit(output -> { output.shouldContain("archive is valid"); output.shouldNotContain("java version"); // Should not print JVM version }); opts = (new CDSOptions()) .setUseVersion(false) .addSuffix( "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./" + archiveName, ! "-XX:+PrintSharedArchiveAndExit", "-Xlog:cds"); CDSTestUtils.run(opts) .assertNormalExit(output -> { output.shouldContain("archive is valid"); output.shouldNotContain("Usage:"); // Should not print JVM help message });

test/hotspot/jtreg/runtime/SharedArchiveFile/PrintSharedArchiveAndExit.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File