1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Bug 505743: Improve stderr output on intermittent tests

Change-Id: Ia1a9cdcb5dc05ab051a5c5b3d2d2d20d32e9154b
This commit is contained in:
Jonah Graham 2017-04-21 09:48:25 +01:00 committed by Gerrit Code Review @ Eclipse.org
parent 8be69a5985
commit b6cb657229

View file

@ -5929,7 +5929,11 @@ public class AST2Tests extends AST2TestBase {
lastException = new Exception("Attempted intermittent test " + RETRY_INTERMITTENT_COUNT
+ " times and it failed each time. Nested exception is last exception."
+ "Previous exceptions are on stderr", e);
System.err.println("IntermittentTest failed, exception was:");
if (i < RETRY_INTERMITTENT_COUNT) {
System.err.println("Intermittent test failed, test will be re-tried. Exception was:");
} else {
System.err.println("Intermittent test failed on each retry, marking test failed. Exception was:");
}
e.printStackTrace();
}
}