# HG changeset patch # User coleenp # Date 1502319104 14400 # Node ID 81d54b338660e3af9988dcb2298239793fb30e6e # Parent f504c6f2eea58acff960a480c2c94322294c87b1 8186044: [TESTBUG] DumpSharedDictionary test sometimes fails in JPRT Summary: wrap test in CDSTestUtils.isUnableToMap(out) Reviewed-by: iklam, mseledtsov diff -r f504c6f2eea5 -r 81d54b338660 hotspot/test/runtime/SharedArchiveFile/DumpSharedDictionary.java --- 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());