Index: tests/standalone/io/process_segfault_test.dart |
diff --git a/tests/standalone/io/process_segfault_test.dart b/tests/standalone/io/process_segfault_test.dart |
index 10d7572bd474497a23a8a819fb7ae6f22f717312..5c278d298b6b72f6c74b14a067e2cfad5cde9fe8 100644 |
--- a/tests/standalone/io/process_segfault_test.dart |
+++ b/tests/standalone/io/process_segfault_test.dart |
@@ -12,11 +12,11 @@ testExit() { |
var future = Process.start(getProcessTestFileName(), |
const ["0", "0", "1", "1"]); |
future.then((process) { |
- process.onExit = (int exitCode) { |
+ process.exitCode.then((int exitCode) { |
Expect.isTrue(exitCode != 0); |
- }; |
- process.stdout.onData = process.stdout.read; |
- process.stderr.onData = process.stderr.read; |
+ }); |
+ process.stdout.listen((_) {}); |
+ process.stderr.listen((_) {}); |
}); |
} |