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

Unified Diff: tools/testing/dart/test_progress.dart

Issue 11066065: Add back in full exit code information. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_progress.dart
===================================================================
--- tools/testing/dart/test_progress.dart (revision 13379)
+++ tools/testing/dart/test_progress.dart (working copy)
@@ -86,7 +86,7 @@
_printTimingInformation();
stdout.close();
stderr.close();
- if (_failedTests > 0) exit(1);
+ exit(_failedTests > 0 ? 1 : 0);
}
void _printStartProgress(TestCase test) {}
@@ -220,7 +220,9 @@
void _printStartProgress(TestCase test) { }
void _printDoneProgress(TestCase test) { }
void allTestsKnown() { }
- void allDone() { }
+ void allDone() {
+ exit(0);
+ }
}
abstract class CompactIndicator extends ProgressIndicator {
@@ -238,7 +240,7 @@
}
stdout.close();
stderr.close();
- if (_failedTests > 0) exit(1);
+ exit(_failedTests > 0 ? 1 : 0);
}
void allTestsKnown() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698