Skip to content

Commit e1a80ca

Browse files
author
duke
committed
Backport 3b271981662df2a7fdf04ffd75d017964425607c
1 parent 9310918 commit e1a80ca

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
@@ -253,7 +253,9 @@ private String getExceptionInfo() {
253253
int exitCode = oa.getExitValue();
254254
String stdErr = oa.getStderr();
255255
String stdOut = "";
256-
if (exitCode == 134) {
256+
boolean osIsWindows = Platform.isWindows();
257+
boolean JVMHadError = (!osIsWindows && exitCode == 134) || (osIsWindows && exitCode == -1);
258+
if (JVMHadError) {
257259
// Also dump the stdout if we experience a JVM error (e.g. to show hit assertions etc.).
258260
stdOut = System.lineSeparator() + System.lineSeparator() + "Standard Output" + System.lineSeparator()
259261
+ "---------------" + System.lineSeparator() + oa.getOutput();

0 commit comments

Comments
 (0)