hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java
changeset 31789 c8c579616fc8
parent 30622 648d51c142bd
child 31977 a737c35bf8f6
equal deleted inserted replaced
31788:04af91b7fadd 31789:c8c579616fc8
    44 
    44 
    45     public static void main(String[] args) throws Exception {
    45     public static void main(String[] args) throws Exception {
    46         runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
    46         runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
    47 
    47 
    48         if (Platform.isWindows()) {
    48         if (Platform.isWindows()) {
    49             runTest("-XX:+CreateCoredumpOnCrash").shouldContain("Core dump will be written. Default location");
       
    50 
       
    51             // The old CreateMinidumpOnCrash option should still work
    49             // The old CreateMinidumpOnCrash option should still work
    52             runTest("-XX:+CreateMinidumpOnCrash").shouldContain("Core dump will be written. Default location");
       
    53             runTest("-XX:-CreateMinidumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
    50             runTest("-XX:-CreateMinidumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
    54 
       
    55             if (Platform.isDebugBuild()) {
       
    56                 // Make sure we create dumps on Windows debug builds by default
       
    57                 runTest("-Ddummyopt=false").shouldContain("Core dump will be written. Default location");
       
    58             }
       
    59         } else {
    51         } else {
    60             runTest("-XX:+CreateCoredumpOnCrash").shouldNotContain("CreateCoredumpOnCrash turned off, no core file dumped");
    52             runTest("-XX:+CreateCoredumpOnCrash").shouldNotContain("CreateCoredumpOnCrash turned off, no core file dumped");
    61         }
    53         }
    62 
    54 
    63     }
    55     }