| 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 // sample the threads once. | 1944 // sample the threads once. |
| 1945 executable = '/usr/bin/sample'; | 1945 executable = '/usr/bin/sample'; |
| 1946 } else if (io.Platform.isWindows) { | 1946 } else if (io.Platform.isWindows) { |
| 1947 bool is_x64 = command.executable.contains("X64") || | 1947 bool is_x64 = command.executable.contains("X64") || |
| 1948 command.executable.contains("SIMARM64"); | 1948 command.executable.contains("SIMARM64"); |
| 1949 var win_sdk_path = configuration['win_sdk_path']; | 1949 var win_sdk_path = configuration['win_sdk_path']; |
| 1950 if (win_sdk_path != null) { | 1950 if (win_sdk_path != null) { |
| 1951 executable = win_sdk_path + | 1951 executable = win_sdk_path + |
| 1952 "\\Debuggers\\" + (is_x64 ? "x64" : "x86") + "\\cdb.exe"; | 1952 "\\Debuggers\\" + (is_x64 ? "x64" : "x86") + "\\cdb.exe"; |
| 1953 diagnostics.add("Using $executable to print stack traces"); | 1953 diagnostics.add("Using $executable to print stack traces"); |
| 1954 arguments = ['-p', '${process.pid}', '-c', '!uniqstack;qd']; | |
| 1955 } else { | 1954 } else { |
| 1956 diagnostics.add("win_sdk path not found"); | 1955 diagnostics.add("win_sdk path not found"); |
| 1957 } | 1956 } |
| 1958 } else { | 1957 } else { |
| 1959 diagnostics.add("Capturing stack traces on" | 1958 diagnostics.add("Capturing stack traces on" |
| 1960 "${io.Platform.operatingSystem} not supported"); | 1959 "${io.Platform.operatingSystem} not supported"); |
| 1961 } | 1960 } |
| 1962 if (executable != null) { | 1961 if (executable != null) { |
| 1963 var pid_list = await _getPidList(process.pid, diagnostics); | 1962 var pid_list = await _getPidList(process.pid, diagnostics); |
| 1964 diagnostics.add("Process list including children: $pid_list"); | 1963 diagnostics.add("Process list including children: $pid_list"); |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3308 } | 3307 } |
| 3309 } | 3308 } |
| 3310 | 3309 |
| 3311 void eventAllTestsDone() { | 3310 void eventAllTestsDone() { |
| 3312 for (var listener in _eventListener) { | 3311 for (var listener in _eventListener) { |
| 3313 listener.allDone(); | 3312 listener.allDone(); |
| 3314 } | 3313 } |
| 3315 _allDone(); | 3314 _allDone(); |
| 3316 } | 3315 } |
| 3317 } | 3316 } |
| OLD | NEW |