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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 List<int> stdout, List<int> stderr, Duration time, | 1557 List<int> stdout, List<int> stderr, Duration time, |
1558 bool compilationSkipped) | 1558 bool compilationSkipped) |
1559 : super(command, exitCode, timedOut, stdout, stderr, time, | 1559 : super(command, exitCode, timedOut, stdout, stderr, time, |
1560 compilationSkipped, 0); | 1560 compilationSkipped, 0); |
1561 | 1561 |
1562 Expectation result(TestCase testCase) { | 1562 Expectation result(TestCase testCase) { |
1563 // Handle general crash/timeout detection. | 1563 // Handle general crash/timeout detection. |
1564 if (hasCrashed) return Expectation.CRASH; | 1564 if (hasCrashed) return Expectation.CRASH; |
1565 if (hasTimedOut) return Expectation.TIMEOUT; | 1565 if (hasTimedOut) return Expectation.TIMEOUT; |
1566 | 1566 |
1567 // Handle dart2js/dart2dart specific crash detection | 1567 // Handle dart2js specific crash detection |
1568 if (exitCode == DART2JS_EXITCODE_CRASH || | 1568 if (exitCode == DART2JS_EXITCODE_CRASH || |
1569 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_COMPILE_TIME_ERROR || | 1569 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_COMPILE_TIME_ERROR || |
1570 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_UNCAUGHT_EXCEPTION) { | 1570 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_UNCAUGHT_EXCEPTION) { |
1571 return Expectation.CRASH; | 1571 return Expectation.CRASH; |
1572 } | 1572 } |
1573 | 1573 |
1574 // Multitests are handled specially | 1574 // Multitests are handled specially |
1575 if (testCase.expectCompileError) { | 1575 if (testCase.expectCompileError) { |
1576 // Nonzero exit code of the compiler means compilation failed | 1576 // Nonzero exit code of the compiler means compilation failed |
1577 // TODO(kustermann): Do we have a special exit code in that case??? | 1577 // TODO(kustermann): Do we have a special exit code in that case??? |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2960 } | 2960 } |
2961 } | 2961 } |
2962 | 2962 |
2963 void eventAllTestsDone() { | 2963 void eventAllTestsDone() { |
2964 for (var listener in _eventListener) { | 2964 for (var listener in _eventListener) { |
2965 listener.allDone(); | 2965 listener.allDone(); |
2966 } | 2966 } |
2967 _allDone(); | 2967 _allDone(); |
2968 } | 2968 } |
2969 } | 2969 } |
OLD | NEW |