| Index: tools/testing/dart/test_runner.dart
|
| ===================================================================
|
| --- tools/testing/dart/test_runner.dart (revision 17449)
|
| +++ tools/testing/dart/test_runner.dart (working copy)
|
| @@ -27,6 +27,8 @@
|
| const int NO_TIMEOUT = 0;
|
| const int SLOW_TIMEOUT_MULTIPLIER = 4;
|
|
|
| +const int CRASHING_BROWSER_EXITCODE = -10;
|
| +
|
| typedef void TestCaseEvent(TestCase testCase);
|
| typedef void ExitCodeEvent(int exitCode);
|
| typedef void EnqueueMoreWork(ProcessQueue queue);
|
| @@ -566,6 +568,11 @@
|
| if (exitCode == 3) {
|
| return !timedOut;
|
| }
|
| + // TODO(ricow): Remove this dirty hack ones we have a selenium
|
| + // replacement.
|
| + if (exitCode == CRASHING_BROWSER_EXITCODE) {
|
| + return !timedOut;
|
| + }
|
| return (!timedOut && (exitCode < 0) && ((0x3FFFFF00 & exitCode) == 0));
|
| }
|
| return !timedOut && ((exitCode < 0));
|
| @@ -1274,7 +1281,7 @@
|
|
|
| var outcome = _status.split(" ")[2];
|
| var exitCode = 0;
|
| - if (outcome == "CRASH") exitCode = -10;
|
| + if (outcome == "CRASH") exitCode = CRASHING_BROWSER_EXITCODE;
|
| if (outcome == "FAIL" || outcome == "TIMEOUT") exitCode = 1;
|
| new CommandOutput.fromCase(_currentTest,
|
| _command,
|
|
|