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 7c93e9a772efa4b30d799920429f6cac14c17b7b..53ffaab9795fff04d955a2723d1dc37a2caa77e9 100644 |
--- a/tests/standalone/io/process_segfault_test.dart |
+++ b/tests/standalone/io/process_segfault_test.dart |
@@ -9,8 +9,8 @@ |
#source("process_test_util.dart"); |
testExit() { |
- Process process = new Process.start(getProcessTestFileName(), |
- const ["0", "0", "1", "1"]); |
+ Process process = Process.start(getProcessTestFileName(), |
+ const ["0", "0", "1", "1"]); |
process.onExit = (int exitCode) { |
Expect.isTrue(exitCode != 0); |
@@ -20,13 +20,11 @@ testExit() { |
testExitRun() { |
- Process process = new Process.run(getProcessTestFileName(), |
- const ["0", "0", "1", "1"], |
- null, |
- (exit, out, err) { |
- Expect.isTrue(exit != 0); |
- Expect.equals(out, ''); |
- Expect.equals(err, ''); |
+ Process.run(getProcessTestFileName(), |
+ const ["0", "0", "1", "1"]).then((result) { |
+ Expect.isTrue(result.exitCode != 0); |
+ Expect.equals(result.stdout, ''); |
+ Expect.equals(result.stderr, ''); |
}); |
} |