OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "package:expect/expect.dart"; | |
6 import "dart:io"; | 5 import "dart:io"; |
7 import "dart:isolate"; | 6 import "dart:isolate"; |
8 import "process_test_util.dart"; | 7 import "process_test_util.dart"; |
9 | 8 |
10 runEnvironmentProcess(Map environment, name, callback) { | 9 runEnvironmentProcess(Map environment, name, callback) { |
11 var dartExecutable = new Options().executable; | 10 var dartExecutable = new Options().executable; |
12 var options = new ProcessOptions(); | 11 var options = new ProcessOptions(); |
13 options.environment = environment; | 12 options.environment = environment; |
14 var printEnv = 'tests/standalone/io/print_env.dart'; | 13 var printEnv = 'tests/standalone/io/print_env.dart'; |
15 if (!new File(printEnv).existsSync()) { | 14 if (!new File(printEnv).existsSync()) { |
(...skipping 29 matching lines...) Expand all Loading... |
45 }); | 44 }); |
46 // Only check one value to not spin up too many processes testing the | 45 // Only check one value to not spin up too many processes testing the |
47 // same things. | 46 // same things. |
48 break; | 47 break; |
49 } | 48 } |
50 } | 49 } |
51 | 50 |
52 main() { | 51 main() { |
53 testEnvironment(); | 52 testEnvironment(); |
54 } | 53 } |
OLD | NEW |