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 01bb1e0b5330d338f7a41ce176dd8a7380884e26..acfe42bc2fb979013fe4db59e3c36e092557ac77 100644 |
--- a/tests/standalone/io/process_working_directory_test.dart |
+++ b/tests/standalone/io/process_working_directory_test.dart |
@@ -17,15 +17,14 @@ class ProcessWorkingDirectoryTest { |
} |
static void testValidDirectory() { |
- Directory directory = new Directory(""); |
- directory.createTempSync(); |
+ Directory directory = new Directory("").createTempSync(); |
Expect.isTrue(directory.existsSync()); |
var options = new ProcessOptions(); |
options.workingDirectory = directory.path; |
- Process process = new Process.start(fullTestFilePath, |
- const ["0", "0", "99", "0"], |
- options); |
+ Process process = Process.start(fullTestFilePath, |
+ const ["0", "0", "99", "0"], |
+ options); |
process.onExit = (int exitCode) { |
Expect.equals(exitCode, 99); |
@@ -40,15 +39,14 @@ class ProcessWorkingDirectoryTest { |
} |
static void testInvalidDirectory() { |
- Directory directory = new Directory(""); |
- directory.createTempSync(); |
+ Directory directory = new Directory("").createTempSync(); |
Expect.isTrue(directory.existsSync()); |
var options = new ProcessOptions(); |
options.workingDirectory = directory.path + "/subPath"; |
- Process process = new Process.start(fullTestFilePath, |
- const ["0", "0", "99", "0"], |
- options); |
+ Process process = Process.start(fullTestFilePath, |
+ const ["0", "0", "99", "0"], |
+ options); |
process.onExit = (int exitCode) { |
Expect.fail("bad process completed"); |