| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |