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

Side by Side Diff: tests/standalone/src/io/ProcessTestUtil.dart

Issue 10190005: Fix timeouts in standalone/io/TestRunnerTest by increasing timeout. Fix a few errors in test_runne… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix builds with only x64 architecture. Created 8 years, 8 months 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 | tests/standalone/src/io/TestRunnerTest.dart » ('j') | 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) 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 String getPlatformOutDir() { 5 String getPlatformOutDir() {
6 var os = Platform.operatingSystem(); 6 var os = Platform.operatingSystem();
7 if (os == 'linux') return 'out/'; 7 if (os == 'linux') return 'out/';
8 if (os == 'macos') return 'xcodebuild/'; 8 if (os == 'macos') return 'xcodebuild/';
9 return ''; // Windows. 9 return ''; // Windows.
10 } 10 }
11 11
12 String getPlatformExecutableExtension() { 12 String getPlatformExecutableExtension() {
13 var os = Platform.operatingSystem(); 13 var os = Platform.operatingSystem();
14 if (os == 'windows') return '.exe'; 14 if (os == 'windows') return '.exe';
15 return ''; // Linux and Mac OS. 15 return ''; // Linux and Mac OS.
16 } 16 }
17 17
18 String getProcessTestFileName() { 18 String getProcessTestFileName() {
19 var outDir = getPlatformOutDir(); 19 var outDir = getPlatformOutDir();
20 var extension = getPlatformExecutableExtension(); 20 var extension = getPlatformExecutableExtension();
21 // We do not expose information about the mode or architecture we are testing
22 // to the tests themselves, so we use any working copy.
21 var names = ['${outDir}Release_ia32/process_test$extension', 23 var names = ['${outDir}Release_ia32/process_test$extension',
22 '${outDir}Debug_ia32/process_test$extension']; 24 '${outDir}Debug_ia32/process_test$extension',
25 '${outDir}Release_x64/process_test$extension',
26 '${outDir}Debug_x64/process_test$extension'];
23 27
24 for (var name in names) { 28 for (var name in names) {
25 if (new File(name).existsSync()) { 29 if (new File(name).existsSync()) {
26 return name; 30 return name;
27 } 31 }
28 } 32 }
29 Expect.fail('Could not find the process_test executable.'); 33 Expect.fail('Could not find the process_test executable.');
30 } 34 }
31 35
32 String getDartFileName() { 36 String getDartFileName() {
33 var outDir = getPlatformOutDir(); 37 var outDir = getPlatformOutDir();
34 var extension = getPlatformExecutableExtension(); 38 var extension = getPlatformExecutableExtension();
39 // We do not expose information about the mode or architecture we are testing
40 // to the tests themselves, so we use any working dart shell.
35 var names = ['${outDir}Release_ia32/dart$extension', 41 var names = ['${outDir}Release_ia32/dart$extension',
36 '${outDir}Debug_ia32/dart$extension']; 42 '${outDir}Debug_ia32/dart$extension',
43 '${outDir}Release_x64/dart$extension',
44 '${outDir}Debug_x64/dart$extension'];
37 45
38 for (var name in names) { 46 for (var name in names) {
39 if (new File(name).existsSync()) { 47 if (new File(name).existsSync()) {
40 return name; 48 return name;
41 } 49 }
42 } 50 }
43 Expect.fail('Could not find the dart executable.'); 51 Expect.fail('Could not find the dart executable.');
44 } 52 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/src/io/TestRunnerTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698