| Index: tests/standalone/io/dart_std_io_pipe_test.dart
|
| diff --git a/tests/standalone/io/dart_std_io_pipe_test.dart b/tests/standalone/io/dart_std_io_pipe_test.dart
|
| index 1642fa6b2c08658934b5ae114c99493b50cd51ba..5264a723d84c15e3042d5287600c1bb5071bf5ae 100644
|
| --- a/tests/standalone/io/dart_std_io_pipe_test.dart
|
| +++ b/tests/standalone/io/dart_std_io_pipe_test.dart
|
| @@ -44,7 +44,6 @@ void test(String shellScript, String dartScript, String type) {
|
| future.then((process) {
|
| process.onExit = (exitCode) {
|
| Expect.equals(0, exitCode);
|
| - process.close();
|
|
|
| // Check the expected file contents.
|
| if (type == "0") {
|
| @@ -68,6 +67,9 @@ void test(String shellScript, String dartScript, String type) {
|
| // Cleanup test directory.
|
| dir.deleteRecursivelySync();
|
| };
|
| + // Drain out and err streams so they close.
|
| + process.stdout.onData = process.stdout.read;
|
| + process.stderr.onData = process.stderr.read;
|
| });
|
| future.handleException((ProcessException error) {
|
| dir.deleteRecursivelySync();
|
|
|