Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1236)

Unified Diff: compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java

Issue 9852001: For batch mode tests, make sure we read stderr in case of a crash. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/src/BoolTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
diff --git a/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java b/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
index 453fc9b0e99e0edb96ead1a7405434fa493fee84..577e38ab1c77ffd9d684e014628fafc9e60daf36 100644
--- a/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
+++ b/compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java
@@ -45,6 +45,9 @@ public class UnitTestBatchRunner {
if (!result) {
testsFailed++;
}
+ if (totalTests > 5) {
+ throw new RuntimeException();
+ }
// Write stderr end token and flush.
System.err.println(">>> EOF STDERR");
System.err.flush();
@@ -53,6 +56,7 @@ public class UnitTestBatchRunner {
System.out.flush();
}
} catch (Throwable e) {
+ System.err.println(">>> EOF STDERR");
System.out.println(">>> TEST CRASH");
System.out.flush();
throw e;
« no previous file with comments | « no previous file | tests/language/src/BoolTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698