Index: tests/standalone/io/process_environment_test.dart |
diff --git a/tests/standalone/io/process_environment_test.dart b/tests/standalone/io/process_environment_test.dart |
index 2eb4111f68c778a29ab03833cd8b83b58d69d5d9..2d6f134ada180b7e295ec9e8e6ceb3c0401e84eb 100644 |
--- a/tests/standalone/io/process_environment_test.dart |
+++ b/tests/standalone/io/process_environment_test.dart |
@@ -15,22 +15,21 @@ runEnvironmentProcess(Map environment, name, includeParent, callback) { |
if (!new File(printEnv).existsSync()) { |
printEnv = '../$printEnv'; |
} |
- Process.run(dartExecutable, |
- [printEnv, name], |
- environment: environment, |
- includeParentEnvironment: includeParent) |
+ Process |
+ .run(dartExecutable, [printEnv, name], |
+ environment: environment, includeParentEnvironment: includeParent) |
.then((result) { |
- if (result.exitCode != 0) { |
- print('print_env.dart subprocess failed ' |
- 'with exit code ${result.exitCode}'); |
- print('stdout:'); |
- print(result.stdout); |
- print('stderr:'); |
- print(result.stderr); |
- } |
- Expect.equals(0, result.exitCode); |
- callback(result.stdout); |
- }); |
+ if (result.exitCode != 0) { |
+ print('print_env.dart subprocess failed ' |
+ 'with exit code ${result.exitCode}'); |
+ print('stdout:'); |
+ print(result.stdout); |
+ print('stderr:'); |
+ print(result.stderr); |
+ } |
+ Expect.equals(0, result.exitCode); |
+ callback(result.stdout); |
+ }); |
} |
testEnvironment() { |