changeset 37732 | 3673fec68d16 |
parent 36517 | 41a1c20eb619 |
child 45725 | 083026107a26 |
--- a/nashorn/test/src/jdk/nashorn/internal/test/framework/ScriptRunnable.java Wed Jul 05 21:38:12 2017 +0200 +++ b/nashorn/test/src/jdk/nashorn/internal/test/framework/ScriptRunnable.java Wed Apr 27 15:50:33 2016 +0200 @@ -194,9 +194,9 @@ pb.redirectError(errorFileHandle); final Process process = pb.start(); - process.waitFor(); + final int exitCode = process.waitFor(); - if (errorFileHandle.length() > 0) { + if (exitCode != 0 || errorFileHandle.length() > 0) { if (expectRunFailure) { return; }