Chromium Code Reviews| Index: tests/standalone/io/process_exit_negative_test.dart |
| diff --git a/tests/standalone/io/process_exit_negative_test.dart b/tests/standalone/io/process_exit_negative_test.dart |
| index 9eede27319538780a10445f298e483cc5dca90af..418977f19b7e049bd3c8aec461210b2254df497b 100644 |
| --- a/tests/standalone/io/process_exit_negative_test.dart |
| +++ b/tests/standalone/io/process_exit_negative_test.dart |
| @@ -9,14 +9,14 @@ import "dart:io"; |
| import "process_test_util.dart"; |
| void main() { |
| - Future<Process> fp = Process.start(getProcessTestFileName(), |
| - const ["0", "0", "0", "0"]); |
| + var fp = Process.start(getProcessTestFileName(), |
|
ricow1
2013/05/22 08:11:18
why change that?
Anders Johnsen
2013/05/22 08:14:06
So we don't have to pull in dart:async. (for Futur
|
| + const ["0", "0", "0", "0"]); |
| fp.then((p) { |
| - p.onExit = (int s) { |
| + p.exitCode.then((int s) { |
| print(a.toString()); // Should cause a compilation error here. |
| - }; |
| + }); |
| // Drain stdout and stderr. |
| - p.stdout.onData = p.stdout.read; |
| - p.stderr.onData = p.stderr.read; |
| + p.stdout.listen((_) {}); |
| + p.stderr.listen((_) {}); |
| }); |
| } |