--- old/test/hotspot/jtreg/runtime/SharedArchiveFile/CdsDifferentCompactStrings.java 2018-08-09 13:43:56.129806362 -0700 +++ new/test/hotspot/jtreg/runtime/SharedArchiveFile/CdsDifferentCompactStrings.java 2018-08-09 13:43:56.017806365 -0700 @@ -33,6 +33,7 @@ import jdk.test.lib.cds.CDSTestUtils; import jdk.test.lib.process.OutputAnalyzer; +import jtreg.SkippedException; public class CdsDifferentCompactStrings { public static void main(String[] args) throws Exception { @@ -50,7 +51,9 @@ CDSTestUtils.checkDump(out); out = CDSTestUtils.runWithArchive(loadCompactStringsArgument); - if (!CDSTestUtils.isUnableToMap(out)) { + if (CDSTestUtils.isUnableToMap(out)) { + throw new SkippedException(CDSTestUtils.UnableToMapMsg); + } else { out.shouldMatch("The shared archive file's CompactStrings " + "setting .* does not equal the current CompactStrings setting") .shouldHaveExitValue(1);