Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Unified Diff: tests/standalone/src/io/ProcessWorkingDirectoryTest.dart

Issue 9863015: This is a request for comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/src/io/ProcessStdIOScript2.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/ProcessWorkingDirectoryTest.dart
diff --git a/tests/standalone/src/io/ProcessWorkingDirectoryTest.dart b/tests/standalone/src/io/ProcessWorkingDirectoryTest.dart
index db5ab41ba9701f157379a466167737db296abd4d..0c4602d37ae92ffdeec4ff7d2bbc2488d1f3dac5 100644
--- a/tests/standalone/src/io/ProcessWorkingDirectoryTest.dart
+++ b/tests/standalone/src/io/ProcessWorkingDirectoryTest.dart
@@ -21,9 +21,11 @@ class ProcessWorkingDirectoryTest {
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"],
- directory.path);
+ options);
process.onExit = (int exitCode) {
Expect.equals(exitCode, 99);
@@ -42,9 +44,11 @@ class ProcessWorkingDirectoryTest {
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"],
- directory.path + "/subPath");
+ options);
process.onExit = (int exitCode) {
Expect.fail("bad process completed");
« no previous file with comments | « tests/standalone/src/io/ProcessStdIOScript2.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698