| Index: tests/standalone/io/regress_7191_test.dart
|
| diff --git a/tests/standalone/io/regress_7191_test.dart b/tests/standalone/io/regress_7191_test.dart
|
| index 4d72e52a800b32fac6aa8be5454c0fa6f511dd45..fa9253898117c75c5cff4e932010491b8a0137c2 100644
|
| --- a/tests/standalone/io/regress_7191_test.dart
|
| +++ b/tests/standalone/io/regress_7191_test.dart
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| @@ -19,12 +19,10 @@ main() {
|
| var scriptDir = new Path(options.script).directoryPath;
|
| var script = scriptDir.append('regress_7191_script.dart').toNativePath();
|
| Process.start(executable, [script]).then((process) {
|
| - process.stdin.write([0]);
|
| - process.stdout.onData = process.stdout.read;
|
| - process.stderr.onData = process.stderr.read;
|
| - process.stdout.onClosed = () {
|
| - process.stdin.write([0]);
|
| - };
|
| - process.onExit = (exitCode) => port.close();
|
| + process.stdin.add([0]);
|
| + process.stdout.listen((_) { },
|
| + onDone: () { process.stdin.add([0]); });
|
| + process.stderr.listen((_) { });
|
| + process.exitCode.then((exitCode) => port.close());
|
| });
|
| }
|
|
|