changeset 56111:edc00278955d

8230228: [TESTBUG] Several runtime/ErrorHandling tests may fail on some platforms Reviewed-by: coleenp, stuefe, mseledtsov
author jiefu
date Wed, 28 Aug 2019 08:47:40 +0800
parents da87424384eb
children 339af8e17cb3
files test/hotspot/jtreg/runtime/ErrorHandling/BadNativeStackInErrorHandlingTest.java test/hotspot/jtreg/runtime/ErrorHandling/ErrorFileRedirectTest.java test/hotspot/jtreg/runtime/ErrorHandling/SafeFetchInErrorHandlingTest.java test/hotspot/jtreg/runtime/ErrorHandling/TimeoutInErrorHandlingTest.java
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/runtime/ErrorHandling/BadNativeStackInErrorHandlingTest.java	Wed Aug 28 15:15:38 2019 -0700
+++ b/test/hotspot/jtreg/runtime/ErrorHandling/BadNativeStackInErrorHandlingTest.java	Wed Aug 28 08:47:40 2019 +0800
@@ -57,7 +57,7 @@
 
     // we should have crashed with a SIGSEGV
     output_detail.shouldMatch("# A fatal error has been detected by the Java Runtime Environment:.*");
-    output_detail.shouldMatch("# +(?:SIGSEGV|EXCEPTION_ACCESS_VIOLATION).*");
+    output_detail.shouldMatch("# +(?:SIGSEGV|SIGBUS|EXCEPTION_ACCESS_VIOLATION).*");
 
     // extract hs-err file
     String hs_err_file = output_detail.firstMatch("# *(\\S*hs_err_pid\\d+\\.log)", 1);
--- a/test/hotspot/jtreg/runtime/ErrorHandling/ErrorFileRedirectTest.java	Wed Aug 28 15:15:38 2019 -0700
+++ b/test/hotspot/jtreg/runtime/ErrorHandling/ErrorFileRedirectTest.java	Wed Aug 28 08:47:40 2019 +0800
@@ -58,7 +58,7 @@
 
     // we should have crashed with a SIGSEGV
     output_detail.shouldMatch("# A fatal error has been detected by the Java Runtime Environment:.*");
-    output_detail.shouldMatch("# +(?:SIGSEGV|EXCEPTION_ACCESS_VIOLATION).*");
+    output_detail.shouldMatch("# +(?:SIGSEGV|SIGBUS|EXCEPTION_ACCESS_VIOLATION).*");
 
     // If no redirection happened, we should find a mention of the file in the output.
     String hs_err_file = output_detail.firstMatch("# *(\\S*hs_err_pid\\d+\\.log)", 1);
--- a/test/hotspot/jtreg/runtime/ErrorHandling/SafeFetchInErrorHandlingTest.java	Wed Aug 28 15:15:38 2019 -0700
+++ b/test/hotspot/jtreg/runtime/ErrorHandling/SafeFetchInErrorHandlingTest.java	Wed Aug 28 08:47:40 2019 +0800
@@ -61,7 +61,7 @@
 
     // we should have crashed with a SIGSEGV
     output_detail.shouldMatch("# A fatal error has been detected by the Java Runtime Environment:.*");
-    output_detail.shouldMatch("# +(?:SIGSEGV|EXCEPTION_ACCESS_VIOLATION).*");
+    output_detail.shouldMatch("# +(?:SIGSEGV|SIGBUS|EXCEPTION_ACCESS_VIOLATION).*");
 
     // extract hs-err file
     String hs_err_file = output_detail.firstMatch("# *(\\S*hs_err_pid\\d+\\.log)", 1);
--- a/test/hotspot/jtreg/runtime/ErrorHandling/TimeoutInErrorHandlingTest.java	Wed Aug 28 15:15:38 2019 -0700
+++ b/test/hotspot/jtreg/runtime/ErrorHandling/TimeoutInErrorHandlingTest.java	Wed Aug 28 08:47:40 2019 +0800
@@ -95,7 +95,7 @@
 
         // we should have crashed with a SIGSEGV
         output_detail.shouldMatch("# A fatal error has been detected by the Java Runtime Environment:.*");
-        output_detail.shouldMatch("# +(?:SIGSEGV|EXCEPTION_ACCESS_VIOLATION).*");
+        output_detail.shouldMatch("# +(?:SIGSEGV|SIGBUS|EXCEPTION_ACCESS_VIOLATION).*");
 
         // VM should have been aborted by WatcherThread
         output_detail.shouldMatch(".*timer expired, abort.*");