# HG changeset patch # User stuefe # Date 1557822319 -7200 # Tue May 14 10:25:19 2019 +0200 # Node ID 947c7a6cbdaac8eea170e0cb203c111ba85067bb # Parent 8058e2c0f89e669743256c4b29d1bb0691d45a52 [mq]: error-handler-test-more-verbose diff -r 8058e2c0f89e -r 947c7a6cbdaa test/hotspot/jtreg/runtime/ErrorHandling/ErrorHandler.java --- a/test/hotspot/jtreg/runtime/ErrorHandling/ErrorHandler.java Tue May 14 08:43:08 2019 +0200 +++ b/test/hotspot/jtreg/runtime/ErrorHandling/ErrorHandler.java Tue May 14 10:25:19 2019 +0200 @@ -43,7 +43,7 @@ // The -XX:ErrorHandlerTest=N option requires debug bits. return new OutputAnalyzer( ProcessTools.createJavaProcessBuilder( - "-XX:-CreateCoredumpOnCrash", "-XX:ErrorHandlerTest=" + testcase) + "-XX:-CreateCoredumpOnCrash", "-XX:ErrorHandlerTest=" + testcase, "-XX:ErrorFile=hs_err_pid_handlertest_" + testcase) .start()); } @@ -74,10 +74,12 @@ }; for (String s : strings) { + System.out.println("Running test: " + i + ", expecting \"" + s + "\"."); runTest(i++).shouldContain(s); } for (String p : patterns) { + System.out.println("Running test: " + i + ", expecting to match \"" + p.toString() + "\"."); runTest(i++).shouldMatch(p); } }