< prev index next >

test/hotspot/jtreg/runtime/SharedArchiveFile/CdsDifferentCompactStrings.java

Print this page

        

*** 31,40 **** --- 31,41 ---- * java.management */ 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 { createAndLoadSharedArchive("+", "-"); createAndLoadSharedArchive("-", "+");
*** 48,58 **** OutputAnalyzer out = CDSTestUtils.createArchive(createCompactStringsArgument); CDSTestUtils.checkDump(out); out = CDSTestUtils.runWithArchive(loadCompactStringsArgument); ! if (!CDSTestUtils.isUnableToMap(out)) { out.shouldMatch("The shared archive file's CompactStrings " + "setting .* does not equal the current CompactStrings setting") .shouldHaveExitValue(1); } } --- 49,61 ---- OutputAnalyzer out = CDSTestUtils.createArchive(createCompactStringsArgument); CDSTestUtils.checkDump(out); out = CDSTestUtils.runWithArchive(loadCompactStringsArgument); ! 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); } }
< prev index next >