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

Unified Diff: runtime/observatory/tests/service/pause_on_start_then_step_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 | « runtime/observatory/tests/service/pause_on_start_and_exit_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/pause_on_start_then_step_test.dart
diff --git a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart
index 0e6b5eee23715a924c6ef5c27c435b569381f46d..5aaf56ec2853c63aacde914dc65a18f1e77d0b80 100644
--- a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart
+++ b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart
@@ -15,26 +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.');
+ print('Subscription cancelled.');
} else {
- print('waiting for pause start event.');
+ 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 | « runtime/observatory/tests/service/pause_on_start_and_exit_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698