8186044: [TESTBUG] DumpSharedDictionary test sometimes fails in JPRT
Summary: wrap test in CDSTestUtils.isUnableToMap(out)
Reviewed-by: iklam, mseledtsov
--- a/hotspot/test/runtime/SharedArchiveFile/DumpSharedDictionary.java Wed Aug 09 17:27:42 2017 +0200
+++ b/hotspot/test/runtime/SharedArchiveFile/DumpSharedDictionary.java Wed Aug 09 18:51:44 2017 -0400
@@ -62,7 +62,9 @@
"-Xshare:on", "DumpSharedDictionary", "test");
out = CDSTestUtils.executeAndLog(pb, "exec");
- out.shouldHaveExitValue(0);
+ if (!CDSTestUtils.isUnableToMap(out)) {
+ out.shouldHaveExitValue(0);
+ }
} else {
// Grab my own PID
String pid = Long.toString(ProcessTools.getProcessId());