Skip to content
Permalink
Browse files

8238366: CTW runner closes standard output on exit

Reviewed-by: adinn, iignatyev
  • Loading branch information
shipilev committed Feb 10, 2020
1 parent ac69c78 commit f1a2c6019e6b2da98fef8496d7f21b79e89648aa
@@ -99,9 +99,11 @@ public static void main(String[] targets) {
} 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);

0 comments on commit f1a2c60

Please sign in to comment.