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 1477a055def25a96277ec7156cbc96d41f979399..9eede27319538780a10445f298e483cc5dca90af 100644 |
| --- a/tests/standalone/io/process_exit_negative_test.dart |
| +++ b/tests/standalone/io/process_exit_negative_test.dart |
| @@ -3,18 +3,20 @@ |
| // BSD-style license that can be found in the LICENSE file. |
| // |
| // Process test program to test that compilation errors in the process |
| -// exit handler is reported correctly. |
| +// exit handler are reported correctly. |
| import "dart:io"; |
| -part "process_test_util.dart"; |
| +import "process_test_util.dart"; |
| void main() { |
| - Process p = Process.start(getProcessTestFileName(), |
| + Future<Process> fp = Process.start(getProcessTestFileName(), |
|
Mads Ager (google)
2012/12/13 19:16:52
Auch! Thanks Bill. :)
|
| const ["0", "0", "0", "0"]); |
| - p.onExit = (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; |
| + fp.then((p) { |
| + p.onExit = (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; |
| + }); |
| } |