| OLD | NEW |
| 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 library test_helper; | 5 library test_helper; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'package:observatory/service_io.dart'; | 10 import 'package:observatory/service_io.dart'; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool pause_on_exit, | 95 bool pause_on_exit, |
| 96 bool pause_on_unhandled_exceptions, | 96 bool pause_on_unhandled_exceptions, |
| 97 bool trace_service, | 97 bool trace_service, |
| 98 bool trace_compiler) { | 98 bool trace_compiler) { |
| 99 assert(pause_on_start != null); | 99 assert(pause_on_start != null); |
| 100 assert(pause_on_exit != null); | 100 assert(pause_on_exit != null); |
| 101 assert(pause_on_unhandled_exceptions != null); | 101 assert(pause_on_unhandled_exceptions != null); |
| 102 assert(trace_service != null); | 102 assert(trace_service != null); |
| 103 assert(trace_compiler != null); | 103 assert(trace_compiler != null); |
| 104 | 104 |
| 105 // TODO(turnidge): I have temporarily turned on service tracing for | |
| 106 // all tests to help diagnose flaky tests. | |
| 107 trace_service = true; | |
| 108 | |
| 109 if (_shouldLaunchSkyShell()) { | 105 if (_shouldLaunchSkyShell()) { |
| 110 return _spawnSkyProcess(pause_on_start, | 106 return _spawnSkyProcess(pause_on_start, |
| 111 pause_on_exit, | 107 pause_on_exit, |
| 112 pause_on_unhandled_exceptions, | 108 pause_on_unhandled_exceptions, |
| 113 trace_service, | 109 trace_service, |
| 114 trace_compiler); | 110 trace_compiler); |
| 115 } else { | 111 } else { |
| 116 return _spawnDartProcess(pause_on_start, | 112 return _spawnDartProcess(pause_on_start, |
| 117 pause_on_exit, | 113 pause_on_exit, |
| 118 pause_on_unhandled_exceptions, | 114 pause_on_unhandled_exceptions, |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 mainArgs: mainArgs, | 479 mainArgs: mainArgs, |
| 484 vmTests: tests, | 480 vmTests: tests, |
| 485 pause_on_start: pause_on_start, | 481 pause_on_start: pause_on_start, |
| 486 pause_on_exit: pause_on_exit, | 482 pause_on_exit: pause_on_exit, |
| 487 trace_service: trace_service, | 483 trace_service: trace_service, |
| 488 trace_compiler: trace_compiler, | 484 trace_compiler: trace_compiler, |
| 489 verbose_vm: verbose_vm, | 485 verbose_vm: verbose_vm, |
| 490 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); | 486 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); |
| 491 } | 487 } |
| 492 } | 488 } |
| OLD | NEW |