8238366: CTW runner closes standard output on exit
Reviewed-by: adinn, iignatyev
This commit is contained in:
parent
ac69c7894d
commit
f1a2c6019e
@ -99,10 +99,12 @@ public class CompileTheWorld {
|
|||||||
} catch (Throwable t){
|
} catch (Throwable t){
|
||||||
t.printStackTrace(ERR);
|
t.printStackTrace(ERR);
|
||||||
} finally {
|
} finally {
|
||||||
|
if (OUT != System.out) {
|
||||||
try {
|
try {
|
||||||
OUT.close();
|
OUT.close();
|
||||||
} catch (Throwable ignore) {
|
} catch (Throwable ignore) {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// <clinit> might have started new threads
|
// <clinit> might have started new threads
|
||||||
System.exit(passed ? 0 : 1);
|
System.exit(passed ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user