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 /** | 5 /** |
6 * Classes and methods for executing tests. | 6 * Classes and methods for executing tests. |
7 * | 7 * |
8 * This module includes: | 8 * This module includes: |
9 * - Managing parallel execution of tests, including timeout checks. | 9 * - Managing parallel execution of tests, including timeout checks. |
10 * - Evaluating the output of each test as pass/fail/crash/timeout. | 10 * - Evaluating the output of each test as pass/fail/crash/timeout. |
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2098 | 2098 |
2099 if (command.environmentOverrides != null) { | 2099 if (command.environmentOverrides != null) { |
2100 for (var key in command.environmentOverrides.keys) { | 2100 for (var key in command.environmentOverrides.keys) { |
2101 environment[key] = command.environmentOverrides[key]; | 2101 environment[key] = command.environmentOverrides[key]; |
2102 } | 2102 } |
2103 } | 2103 } |
2104 for (var excludedEnvironmentVariable in EXCLUDED_ENVIRONMENT_VARIABLES) { | 2104 for (var excludedEnvironmentVariable in EXCLUDED_ENVIRONMENT_VARIABLES) { |
2105 environment.remove(excludedEnvironmentVariable); | 2105 environment.remove(excludedEnvironmentVariable); |
2106 } | 2106 } |
2107 | 2107 |
2108 // TODO(terry): Needed for roll 50? | |
Jacob
2017/05/11 04:22:06
is this really needed?
| |
2109 environment["GLIBCPP_FORCE_NEW"] = "1"; | |
2110 environment["GLIBCXX_FORCE_NEW"] = "1"; | |
2111 | |
2108 return environment; | 2112 return environment; |
2109 } | 2113 } |
2110 } | 2114 } |
2111 | 2115 |
2112 class BatchRunnerProcess { | 2116 class BatchRunnerProcess { |
2113 Completer<CommandOutput> _completer; | 2117 Completer<CommandOutput> _completer; |
2114 ProcessCommand _command; | 2118 ProcessCommand _command; |
2115 List<String> _arguments; | 2119 List<String> _arguments; |
2116 String _runnerType; | 2120 String _runnerType; |
2117 | 2121 |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3242 } | 3246 } |
3243 } | 3247 } |
3244 | 3248 |
3245 void eventAllTestsDone() { | 3249 void eventAllTestsDone() { |
3246 for (var listener in _eventListener) { | 3250 for (var listener in _eventListener) { |
3247 listener.allDone(); | 3251 listener.allDone(); |
3248 } | 3252 } |
3249 _allDone(); | 3253 _allDone(); |
3250 } | 3254 } |
3251 } | 3255 } |
OLD | NEW |