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

Side by Side Diff: runtime/observatory/tests/service/test_helper.dart

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: initialize async_causal_stack_trace_ to NULL Created 3 years, 10 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
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 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 vm.verbose = verbose_vm; 321 vm.verbose = verbose_vm;
322 print('Running $name [$testIndex/$totalTests]'); 322 print('Running $name [$testIndex/$totalTests]');
323 testIndex++; 323 testIndex++;
324 await test(isolate); 324 await test(isolate);
325 } 325 }
326 } 326 }
327 327
328 await process.requestExit(); 328 await process.requestExit();
329 }, onError: (error, stackTrace) { 329 }, onError: (error, stackTrace) {
330 process.requestExit(); 330 process.requestExit();
331 print('Unexpected exception in service tests: $error\n$stackTrace'); 331 print('Unexpected exception in service tests: $error\n'
332 '${stackTrace.terse}');
332 throw error; 333 throw error;
333 }); 334 });
334 }); 335 });
335 } 336 }
336 } 337 }
337 338
338 /// Runs [tests] in sequence, each of which should take an [Isolate] and 339 /// Runs [tests] in sequence, each of which should take an [Isolate] and
339 /// return a [Future]. Code for setting up state can run before and/or 340 /// return a [Future]. Code for setting up state can run before and/or
340 /// concurrently with the tests. Uses [mainArgs] to determine whether 341 /// concurrently with the tests. Uses [mainArgs] to determine whether
341 /// to run tests or testee in this invokation of the script. 342 /// to run tests or testee in this invokation of the script.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 new _ServiceTesterRunner().run( 430 new _ServiceTesterRunner().run(
430 mainArgs: mainArgs, 431 mainArgs: mainArgs,
431 extraArgs: extraArgs, 432 extraArgs: extraArgs,
432 vmTests: tests, 433 vmTests: tests,
433 pause_on_start: pause_on_start, 434 pause_on_start: pause_on_start,
434 pause_on_exit: pause_on_exit, 435 pause_on_exit: pause_on_exit,
435 verbose_vm: verbose_vm, 436 verbose_vm: verbose_vm,
436 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); 437 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions);
437 } 438 }
438 } 439 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698