8186044: [TESTBUG] DumpSharedDictionary test sometimes fails in JPRT

Wrap test in CDSTestUtils.isUnableToMap(out)

Reviewed-by: iklam, mseledtsov
This commit is contained in:
Coleen Phillimore 2017-08-09 18:51:44 -04:00
parent 1453d9cb23
commit e1528538f4

View File

@ -62,7 +62,9 @@ public class DumpSharedDictionary {
"-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());