8186044: [TESTBUG] DumpSharedDictionary test sometimes fails in JPRT
authorcoleenp
Wed, 09 Aug 2017 18:51:44 -0400
changeset 46781 81d54b338660
parent 46778 f504c6f2eea5
child 46782 0405d7196df4
8186044: [TESTBUG] DumpSharedDictionary test sometimes fails in JPRT Summary: wrap test in CDSTestUtils.isUnableToMap(out) Reviewed-by: iklam, mseledtsov
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());