Skip to content

Commit fa91cf4

Browse files
committed
8325647: [IR framework] Only prints stdout if exitCode is 134
Backport-of: 3b271981662df2a7fdf04ffd75d017964425607c
1 parent 8676524 commit fa91cf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/hotspot/jtreg/compiler/lib/ir_framework/driver/TestVMProcess.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ private String getExceptionInfo() {
244244
int exitCode = oa.getExitValue();
245245
String stdErr = oa.getStderr();
246246
String stdOut = "";
247-
if (exitCode == 134) {
247+
boolean osIsWindows = Platform.isWindows();
248+
boolean JVMHadError = (!osIsWindows && exitCode == 134) || (osIsWindows && exitCode == -1);
249+
if (JVMHadError) {
248250
// Also dump the stdout if we experience a JVM error (e.g. to show hit assertions etc.).
249251
stdOut = System.lineSeparator() + System.lineSeparator() + "Standard Output" + System.lineSeparator()
250252
+ "---------------" + System.lineSeparator() + oa.getOutput();

0 commit comments

Comments
 (0)