Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tests/standalone/io/test_runner_test.dart

Issue 92053002: Increase default timeout in tests/standalone/io/test_runner_test.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "dart:io"; 5 import "dart:io";
6 import "dart:isolate"; 6 import "dart:isolate";
7 import "dart:async"; 7 import "dart:async";
8 import "../../../tools/testing/dart/test_runner.dart"; 8 import "../../../tools/testing/dart/test_runner.dart";
9 import "../../../tools/testing/dart/test_suite.dart"; 9 import "../../../tools/testing/dart/test_suite.dart";
10 import "../../../tools/testing/dart/test_progress.dart" as progress; 10 import "../../../tools/testing/dart/test_progress.dart" as progress;
11 import "../../../tools/testing/dart/status_file_parser.dart"; 11 import "../../../tools/testing/dart/status_file_parser.dart";
12 import "../../../tools/testing/dart/test_options.dart"; 12 import "../../../tools/testing/dart/test_options.dart";
13 import "process_test_util.dart"; 13 import "process_test_util.dart";
14 14
15 final DEFAULT_TIMEOUT = 2; 15 final DEFAULT_TIMEOUT = 10;
16 final LONG_TIMEOUT = 30; 16 final LONG_TIMEOUT = 30;
17 17
18 class TestController { 18 class TestController {
19 static int numTests = 0; 19 static int numTests = 0;
20 static int numCompletedTests = 0; 20 static int numCompletedTests = 0;
21 21
22 // Used as TestCase.completedCallback. 22 // Used as TestCase.completedCallback.
23 static processCompletedTest(TestCase testCase) { 23 static processCompletedTest(TestCase testCase) {
24 numCompletedTests++; 24 numCompletedTests++;
25 if (testCase.displayName == "fail-unexpected") { 25 if (testCase.displayName == "fail-unexpected") {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 testProcessQueue(); 133 testProcessQueue();
134 } else { 134 } else {
135 switch (arguments[0]) { 135 switch (arguments[0]) {
136 case 'pass': 136 case 'pass':
137 return; 137 return;
138 case 'fail-unexpected': 138 case 'fail-unexpected':
139 case 'fail': 139 case 'fail':
140 throw "This test always fails, to test the test scripts."; 140 throw "This test always fails, to test the test scripts.";
141 break; 141 break;
142 case 'timeout': 142 case 'timeout':
143 // Run for 10 seconds, then exit. This tests a 2 second timeout. 143 // This process should be killed by the test after DEFAULT_TIMEOUT
144 new Timer(new Duration(seconds: 10), (){ }); 144 new Timer(new Duration(hours: 42), (){ });
145 break; 145 break;
146 default: 146 default:
147 throw "Unknown option ${arguments[0]} passed to test_runner_test"; 147 throw "Unknown option ${arguments[0]} passed to test_runner_test";
148 } 148 }
149 } 149 }
150 } 150 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698