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

Unified Diff: runtime/observatory/tests/service/pause_on_start_and_exit_test.dart

Issue 1320693002: Adding debugging output to flaky tests to help diagnose problems on the bots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/observatory/tests/service/pause_on_start_then_step_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/pause_on_start_and_exit_test.dart
diff --git a/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart b/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart
index 7c63e9d609201d00151199497a338f92be0aa690..091c83f4de598ac0c9788786d17786984c24463d 100644
--- a/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart
+++ b/runtime/observatory/tests/service/pause_on_start_and_exit_test.dart
@@ -15,24 +15,32 @@ void testMain() {
var tests = [
(Isolate isolate) async {
+ print('Getting stream...');
Completer completer = new Completer();
var stream = await isolate.vm.getEventStream(VM.kDebugStream);
+ print('Subscribing...');
var subscription;
subscription = stream.listen((ServiceEvent event) {
if (event.kind == ServiceEvent.kPauseStart) {
- print('Received PauseStart');
+ print('Received $event');
subscription.cancel();
completer.complete();
+ } else {
+ print('Ignoring event $event');
}
});
+ print('Subscribed. Pause event is ${isolate.pauseEvent}');
if (isolate.pauseEvent != null &&
isolate.pauseEvent.kind == ServiceEvent.kPauseStart) {
// Wait for the isolate to hit PauseStart.
subscription.cancel();
+ print('Subscription cancelled.');
} else {
+ print('Waiting for pause start event.');
await completer.future;
}
+ print('Done waiting for pause event.');
// Grab the timestamp.
var pausetime1 = isolate.pauseEvent.timestamp;
« no previous file with comments | « no previous file | runtime/observatory/tests/service/pause_on_start_then_step_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698