Skip to content

Commit

Permalink
Merge pull request #655 from pshipton/dumpfail2
Browse files Browse the repository at this point in the history
Cause a system dump on failure of UncaughtExceptionsTest
  • Loading branch information
keithc-ca committed May 11, 2023
2 parents 236e089 + ba9620d commit ee54452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/lang/Thread/UncaughtExceptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public Object[][] testCases() {
public void test(String className, int exitValue, String stdOutMatch, String stdErrMatch) throws Throwable {
ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(String.format("UncaughtExitSimulator$%s",className));
OutputAnalyzer outputAnalyzer = ProcessTools.executeCommand(processBuilder);
outputAnalyzer.shouldHaveExitValue(exitValue);
outputAnalyzer.stderrShouldMatch(stdErrMatch);
try {
outputAnalyzer.shouldHaveExitValue(exitValue);
outputAnalyzer.stderrShouldMatch(stdErrMatch);
outputAnalyzer.stdoutShouldMatch(stdOutMatch);
} catch (RuntimeException e) {
com.ibm.jvm.Dump.SystemDump();
Expand Down

0 comments on commit ee54452

Please sign in to comment.