hotspot/test/runtime/SharedArchiveFile/DefaultUseWithClient.java
changeset 23442 be6bd2c1f2a8
parent 22892 1709e0e0b87c
child 29678 dd2f3932c21e
child 30123 7a8b6bd85e24
--- a/hotspot/test/runtime/SharedArchiveFile/DefaultUseWithClient.java	Wed Mar 05 12:31:09 2014 -0500
+++ b/hotspot/test/runtime/SharedArchiveFile/DefaultUseWithClient.java	Mon Mar 10 14:50:20 2014 -0400
@@ -22,7 +22,6 @@
  */
 
 /*
- * @ignore 8032224
  * @test DefaultUseWithClient
  * @summary Test default behavior of sharing with -client
  * @library /testlibrary
@@ -57,10 +56,17 @@
            "-XX:+UnlockDiagnosticVMOptions",
            "-XX:SharedArchiveFile=./" + fileName,
            "-client",
+           "-XX:+PrintSharedSpaces",
            "-version");
 
         output = new OutputAnalyzer(pb.start());
-        output.shouldContain("sharing");
+        try {
+            output.shouldContain("sharing");
+        } catch (RuntimeException e) {
+            // if sharing failed due to ASLR or similar reasons,
+            // check whether sharing was attempted at all (UseSharedSpaces)
+            output.shouldContain("UseSharedSpaces:");
+        }
         output.shouldHaveExitValue(0);
    }
 }