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

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

Issue 9195006: Test.dart will wait for the temporary directory to be deleted before exiting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a space between the handler parameter list and the opening brace of its body. Created 8 years, 11 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_runner.dart
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart
index 41077d2bcf7efd4305f43d94909190f91176c922..70b6bd91a7fc9c5c158b80e00ada63e5b2ce4f2e 100644
--- a/tools/testing/dart/test_runner.dart
+++ b/tools/testing/dart/test_runner.dart
@@ -479,7 +479,12 @@ class ProcessQueue {
// implemented, and add Windows support.
var deletion =
new Process.start('/bin/rm', ['-rf', _temporaryDirectory]);
- deletion.startHandler = (){
+ deletion.exitHandler = (int exitCode) {
+ if (exitCode == 0) {
+ print('\nTemporary directory $_temporaryDirectory deleted.');
+ } else {
+ print('\nDeletion of temp dir $_temporaryDirectory failed.');
+ }
_progress.allDone();
};
}
« 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