Index: tests/standalone/io/process_working_directory_test.dart |
diff --git a/tests/standalone/io/process_working_directory_test.dart b/tests/standalone/io/process_working_directory_test.dart |
index 55b154d6685e280a4101ed45df850f9827b67204..662c863e3db7e87d08a5d3b2c603ab3ef971ed5d 100644 |
--- a/tests/standalone/io/process_working_directory_test.dart |
+++ b/tests/standalone/io/process_working_directory_test.dart |
@@ -5,6 +5,7 @@ |
// Process working directory test. |
library ProcessWorkingDirectoryTest; |
+ |
import "package:expect/expect.dart"; |
import "dart:io"; |
import "process_test_util.dart"; |
@@ -22,20 +23,20 @@ class ProcessWorkingDirectoryTest { |
Directory.systemTemp.createTempSync('dart_process_working_directory'); |
Expect.isTrue(directory.existsSync()); |
- Process.start(fullTestFilePath, |
- const ["0", "0", "99", "0"], |
- workingDirectory: directory.path) |
+ Process |
+ .start(fullTestFilePath, const ["0", "0", "99", "0"], |
+ workingDirectory: directory.path) |
.then((process) { |
- process.exitCode.then((int exitCode) { |
- Expect.equals(exitCode, 99); |
- directory.deleteSync(); |
- }); |
- process.stdout.listen((_) {}); |
- process.stderr.listen((_) {}); |
- }).catchError((error) { |
- directory.deleteSync(); |
- Expect.fail("Couldn't start process"); |
- }); |
+ process.exitCode.then((int exitCode) { |
+ Expect.equals(exitCode, 99); |
+ directory.deleteSync(); |
+ }); |
+ process.stdout.listen((_) {}); |
+ process.stderr.listen((_) {}); |
+ }).catchError((error) { |
+ directory.deleteSync(); |
+ Expect.fail("Couldn't start process"); |
+ }); |
} |
static void testInvalidDirectory() { |
@@ -43,21 +44,19 @@ class ProcessWorkingDirectoryTest { |
Directory.systemTemp.createTempSync('dart_process_working_directory'); |
Expect.isTrue(directory.existsSync()); |
- Process.start(fullTestFilePath, |
- const ["0", "0", "99", "0"], |
- workingDirectory: directory.path + "/subPath") |
+ Process |
+ .start(fullTestFilePath, const ["0", "0", "99", "0"], |
+ workingDirectory: directory.path + "/subPath") |
.then((process) { |
- Expect.fail("bad process completed"); |
- directory.deleteSync(); |
- }).catchError((e) { |
- Expect.isNotNull(e); |
- directory.deleteSync(); |
- }); |
+ Expect.fail("bad process completed"); |
+ directory.deleteSync(); |
+ }).catchError((e) { |
+ Expect.isNotNull(e); |
+ directory.deleteSync(); |
+ }); |
} |
} |
- |
- |
main() { |
ProcessWorkingDirectoryTest.testValidDirectory(); |
ProcessWorkingDirectoryTest.testInvalidDirectory(); |