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

Unified Diff: runtime/vm/debugger_api_impl_test.cc

Issue 9475030: Print more info in debugger tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger_api_impl_test.cc
===================================================================
--- runtime/vm/debugger_api_impl_test.cc (revision 4639)
+++ runtime/vm/debugger_api_impl_test.cc (working copy)
@@ -15,7 +15,7 @@
static bool breakpoint_hit = false;
static int breakpoint_hit_counter = 0;
-static const bool verbose = false;
+static const bool verbose = true;
#define EXPECT_NOT_ERROR(handle) \
if (Dart_IsError(handle)) { \
@@ -266,12 +266,12 @@
EXPECT(Dart_IsString(func_name));
const char* name_chars;
Dart_StringToCString(func_name, &name_chars);
+ if (verbose) {
+ printf(" >> bpt nr %d: %s\n", breakpoint_hit_counter, name_chars);
+ }
if (breakpoint_hit_counter < expected_bpts_length) {
EXPECT_STREQ(expected_bpts[breakpoint_hit_counter], name_chars);
}
- if (verbose) {
- printf(" >> bpt nr %d: %s\n", breakpoint_hit_counter, name_chars);
- }
breakpoint_hit = true;
breakpoint_hit_counter++;
Dart_SetStepOver();
@@ -375,7 +375,7 @@
breakpoint_hit_counter = 0;
Dart_Handle retval = Invoke(lib, "main");
EXPECT(!Dart_IsError(retval));
- EXPECT(breakpoint_hit_counter == 2);
+ EXPECT_EQ(2, breakpoint_hit_counter);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698