< prev index next >
test/hotspot/jtreg/runtime/SharedArchiveFile/CdsDifferentCompactStrings.java
Print this page
@@ -31,10 +31,11 @@
* 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,11 +49,13 @@
OutputAnalyzer out = CDSTestUtils.createArchive(createCompactStringsArgument);
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);
}
}
< prev index next >