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

Side by Side Diff: tests/standalone/io/process_shell_test.dart

Issue 15782003: Use correct path escape on Windows, for Process. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/process_patch.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "dart:io"; 5 import "dart:io";
6 import "dart:isolate"; 6 import "dart:isolate";
7 7
8 void testRunShell() { 8 void testRunShell() {
9 test(args) { 9 test(args) {
10 var options = new Options(); 10 var options = new Options();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 var path = new Path(options.script); 48 var path = new Path(options.script);
49 path = path.directoryPath.join(new Path("process_echo_util.dart")); 49 path = path.directoryPath.join(new Path("process_echo_util.dart"));
50 Process.run(exe, args, runInShell: true) 50 Process.run(exe, args, runInShell: true)
51 .then((result) { 51 .then((result) {
52 port.close(); 52 port.close();
53 if (result.exitCode == 0) { 53 if (result.exitCode == 0) {
54 throw "error expected"; 54 throw "error expected";
55 } 55 }
56 }); 56 });
57 } 57 }
58 test("'\"'");
58 test("'\$HOME'"); 59 test("'\$HOME'");
59 } 60 }
60 61
61 void main() { 62 void main() {
62 testRunShell(); 63 testRunShell();
63 testBadRunShell(); 64 testBadRunShell();
64 } 65 }
65 66
OLDNEW
« no previous file with comments | « runtime/bin/process_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698