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