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

Unified Diff: tests/standalone/io/regress_7191_test.dart

Issue 11530008: Fix newly added regression test that left processes hanging on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
Index: tests/standalone/io/regress_7191_test.dart
diff --git a/tests/standalone/io/regress_7191_test.dart b/tests/standalone/io/regress_7191_test.dart
index 81f9eda664bdfa25802219f3cb16d655ead3d295..75284be271da0af23e528b723eb04d9b6b822e4a 100644
--- a/tests/standalone/io/regress_7191_test.dart
+++ b/tests/standalone/io/regress_7191_test.dart
@@ -10,8 +10,10 @@
// closed which will make this test hang.
import 'dart:io';
+import 'dart:isolate';
main() {
+ var port = new ReceivePort();
var options = new Options();
var executable = options.executable;
var scriptDir = new Path.fromNative(options.script).directoryPath;
@@ -23,5 +25,6 @@ main() {
process.stdout.onClosed = () {
process.stdin.write([0]);
};
+ process.onExit = (exitCode) => port.close();
});
-}
+}
« tests/standalone/io/regress_7191_script.dart ('K') | « tests/standalone/io/regress_7191_script.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698