| 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);
|
| }
|
|
|
|
|
|
|