--- old/test/hotspot/jtreg/runtime/SharedArchiveFile/ArchiveDoesNotExist.java 2018-08-09 13:43:55.845806370 -0700 +++ new/test/hotspot/jtreg/runtime/SharedArchiveFile/ArchiveDoesNotExist.java 2018-08-09 13:43:55.733806374 -0700 @@ -38,6 +38,8 @@ import jdk.test.lib.cds.CDSTestUtils; import jdk.test.lib.process.OutputAnalyzer; import java.io.File; +import jtreg.SkippedException; + public class ArchiveDoesNotExist { public static void main(String[] args) throws Exception { @@ -51,7 +53,9 @@ // -Xshare=on OutputAnalyzer out = CDSTestUtils.runWithArchive(opts); - if (!CDSTestUtils.isUnableToMap(out)) { + if (CDSTestUtils.isUnableToMap(out)) { + throw new SkippedException(CDSTestUtils.UnableToMapMsg); + } else { out.shouldContain("Specified shared archive not found") .shouldHaveExitValue(1); }