8080733: [TESTBUG] several runtime/ErrorHandling/* tests time out on Windows
authorctornqvi
Wed, 15 Jul 2015 10:37:11 -0700
changeset 31789 c8c579616fc8
parent 31788 04af91b7fadd
child 31791 619b204d5475
child 31792 01f875743508
8080733: [TESTBUG] several runtime/ErrorHandling/* tests time out on Windows Reviewed-by: coleenp, gtriantafill
hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java
hotspot/test/runtime/ErrorHandling/TestOnError.java
hotspot/test/runtime/memory/ReserveMemory.java
--- a/hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java	Tue Jul 14 16:28:53 2015 +0200
+++ b/hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java	Wed Jul 15 10:37:11 2015 -0700
@@ -46,16 +46,8 @@
         runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
 
         if (Platform.isWindows()) {
-            runTest("-XX:+CreateCoredumpOnCrash").shouldContain("Core dump will be written. Default location");
-
             // The old CreateMinidumpOnCrash option should still work
-            runTest("-XX:+CreateMinidumpOnCrash").shouldContain("Core dump will be written. Default location");
             runTest("-XX:-CreateMinidumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
-
-            if (Platform.isDebugBuild()) {
-                // Make sure we create dumps on Windows debug builds by default
-                runTest("-Ddummyopt=false").shouldContain("Core dump will be written. Default location");
-            }
         } else {
             runTest("-XX:+CreateCoredumpOnCrash").shouldNotContain("CreateCoredumpOnCrash turned off, no core file dumped");
         }
--- a/hotspot/test/runtime/ErrorHandling/TestOnError.java	Tue Jul 14 16:28:53 2015 +0200
+++ b/hotspot/test/runtime/ErrorHandling/TestOnError.java	Wed Jul 15 10:37:11 2015 -0700
@@ -45,6 +45,7 @@
         // Execute the VM so that a
         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
            "-XX:-TransmitErrorReport",
+           "-XX:-CreateCoredumpOnCrash",
            "-XX:ErrorHandlerTest=12", // trigger potential SEGV
            "-XX:OnError=echo " + msg,
            TestOnError.class.getName());
--- a/hotspot/test/runtime/memory/ReserveMemory.java	Tue Jul 14 16:28:53 2015 +0200
+++ b/hotspot/test/runtime/memory/ReserveMemory.java	Wed Jul 15 10:37:11 2015 -0700
@@ -60,6 +60,7 @@
           "-XX:+UnlockDiagnosticVMOptions",
           "-XX:+WhiteBoxAPI",
           "-XX:-TransmitErrorReport",
+          "-XX:-CreateCoredumpOnCrash",
           "-Xmx32m",
           "ReserveMemory",
           "test");