| Index: tests/standalone/io/stdio_implicit_close_test.dart
|
| diff --git a/tests/standalone/io/stdio_implicit_close_test.dart b/tests/standalone/io/stdio_implicit_close_test.dart
|
| index 78da8362bfa67f30e850877ed0c83fef1c732346..3d1339d5c66384542c124adfb6e503d5fbd57e88 100644
|
| --- a/tests/standalone/io/stdio_implicit_close_test.dart
|
| +++ b/tests/standalone/io/stdio_implicit_close_test.dart
|
| @@ -16,20 +16,20 @@ void test({bool closeStdout, bool closeStderr}) {
|
| // Relying on these flags to print something specific on stdout and stderr
|
| // is brittle, but otherwise we would need to add our own flag.
|
| var arguments = [
|
| - "--print-metrics", // Prints on stderr.
|
| - "--timing", // Prints on stdout.
|
| - script,
|
| + "--print-metrics", // Prints on stderr.
|
| + "--timing", // Prints on stdout.
|
| + script,
|
| ];
|
| if (closeStdout) arguments.add("stdout");
|
| if (closeStderr) arguments.add("stderr");
|
|
|
| asyncStart();
|
| - Process.run(Platform.executable,
|
| - arguments,
|
| - stdoutEncoding: ASCII,
|
| - stderrEncoding: ASCII).then((result) {
|
| - print(result.stdout);
|
| - print(result.stderr);
|
| + Process
|
| + .run(Platform.executable, arguments,
|
| + stdoutEncoding: ASCII, stderrEncoding: ASCII)
|
| + .then((result) {
|
| + print(result.stdout);
|
| + print(result.stderr);
|
| Expect.equals(0, result.exitCode);
|
|
|
| if (closeStdout) {
|
|
|