| Index: tests/standalone/io/process_start_exception_test.dart
|
| diff --git a/tests/standalone/io/process_start_exception_test.dart b/tests/standalone/io/process_start_exception_test.dart
|
| index 2bf38cc95f1498d92d7410c30b2df820dee38eab..cb5c20c5c29222358f98eb9f4fa781eb598fa725 100644
|
| --- a/tests/standalone/io/process_start_exception_test.dart
|
| +++ b/tests/standalone/io/process_start_exception_test.dart
|
| @@ -19,25 +19,25 @@ import 'dart:io';
|
| const ENOENT = 2;
|
|
|
| testStartError() {
|
| - Future<Process> processFuture =
|
| - Process.start("__path_to_something_that_should_not_exist__",
|
| - const [],
|
| - environment: {"PATH": ""});
|
| - processFuture.then((p) => Expect.fail('got process despite start error'))
|
| - .catchError((error) {
|
| + Future<Process> processFuture = Process.start(
|
| + "__path_to_something_that_should_not_exist__", const [],
|
| + environment: {"PATH": ""});
|
| + processFuture
|
| + .then((p) => Expect.fail('got process despite start error'))
|
| + .catchError((error) {
|
| Expect.isTrue(error is ProcessException);
|
| Expect.equals(ENOENT, error.errorCode, error.toString());
|
| });
|
| }
|
|
|
| testRunError() {
|
| - Future<ProcessResult> processFuture =
|
| - Process.run("__path_to_something_that_should_not_exist__",
|
| - const [],
|
| - environment: {"PATH": ""});
|
| + Future<ProcessResult> processFuture = Process.run(
|
| + "__path_to_something_that_should_not_exist__", const [],
|
| + environment: {"PATH": ""});
|
|
|
| - processFuture.then((result) => Expect.fail("exit handler called"))
|
| - .catchError((error) {
|
| + processFuture
|
| + .then((result) => Expect.fail("exit handler called"))
|
| + .catchError((error) {
|
| Expect.isTrue(error is ProcessException);
|
| Expect.equals(ENOENT, error.errorCode, error.toString());
|
| });
|
|
|