8062070: com/sun/jdi/DoubleAgentTest.java.DoubleAgentTest fails intermittently after 8056143

Reviewed-by: dholmes
This commit is contained in:
Jaroslav Bachorik 2014-10-24 18:33:42 +02:00
parent 0498575d5e
commit 424ccf1771

View File

@ -319,13 +319,14 @@ public final class ProcessTools {
return output;
} catch (Throwable t) {
if (p != null) {
p.destroyForcibly().waitFor();
}
failed = true;
System.out.println("executeProcess() failed: " + t);
throw t;
} finally {
if (p != null) {
p.destroyForcibly().waitFor();
}
if (failed) {
System.err.println(getProcessLog(pb, output));
}