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

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 newline before temp dir deletion report. 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..3731065cd400ab26aa39defb10129dac4be8abf6 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){
ricow1 2012/01/19 10:20:34 add space before {
+ 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