| 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..eae4d2fe5d70866bb4d35978323c2abc6946eb40 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);
|
| + InteractiveProcess 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);
|
| + InteractiveProcess process = Process.start(fullTestFilePath,
|
| + const ["0", "0", "99", "0"],
|
| + options);
|
|
|
| process.onExit = (int exitCode) {
|
| Expect.fail("bad process completed");
|
|
|