| 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..ed978a16a7eef63603cb9caa5438b939a043dccd 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"]);
|
| + InteractiveProcess 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, '');
|
| });
|
| }
|
|
|
|
|