| Index: tests/standalone/src/TestRunnerTest.dart
|
| diff --git a/tests/standalone/src/TestRunnerTest.dart b/tests/standalone/src/TestRunnerTest.dart
|
| index 1f001ae4e5a22a5242ea6dc93a49197960fc30c6..7493dff3a2a4eae3b5899d7ec7b44ba075b0e6b5 100644
|
| --- a/tests/standalone/src/TestRunnerTest.dart
|
| +++ b/tests/standalone/src/TestRunnerTest.dart
|
| @@ -46,13 +46,27 @@ TestCase MakeTestCase(String testName, List<String> expectations) {
|
| new Set<String>.from(expectations));
|
| }
|
|
|
| +String getProcessTestFileName() {
|
| + var names = ['out/Release_ia32/process_test',
|
| + 'out/Debug_ia32/process_test',
|
| + 'xcodebuild/Release_ia32/process_test',
|
| + 'xcodebuild/Debug_ia32/process_test',
|
| + 'Release_ia32/process_test.exe',
|
| + 'Debug_ia32/process_test.exe'];
|
| + for (var name in names) {
|
| + if (new File(name).existsSync()) {
|
| + return name;
|
| + }
|
| + }
|
| + Expect.fail('Could not find the process_test program.');
|
| +}
|
| +
|
| void main() {
|
| new RunningProcess(MakeTestCase("PassTest", [PASS]), 30).start();
|
| new RunningProcess(MakeTestCase("FailTest", [FAIL]), 30).start();
|
| new RunningProcess(MakeTestCase("TimeoutTest", [TIMEOUT]), 30).start();
|
|
|
| - // TODO(whesse): Replace process_test with getProcessTestFileName().
|
| - new RunningProcess(new TestCase("out/Debug_ia32/process_test",
|
| + new RunningProcess(new TestCase(getProcessTestFileName(),
|
| const ["0", "0", "1", "1"],
|
| TestController.processCompletedTest,
|
| new Set<String>.from([CRASH])),
|
|
|