Enhance CHECK_EQ and friends to allow extra detail to be appended (like CHECK).
Change-Id: Iaa980892ab31621c8bcca9ea7c6c4ee743333f45
diff --git a/src/stack_walk.cc b/src/stack_walk.cc
index a1f6e0f..b2feee3 100644
--- a/src/stack_walk.cc
+++ b/src/stack_walk.cc
@@ -59,7 +59,7 @@
EXPECT_EQ(0U, m->ToDexPC(pc));
EXPECT_REGS(1);
} else {
- CHECK(gJava_StackWalk_refmap_calls == 2);
+ CHECK_EQ(gJava_StackWalk_refmap_calls, 2);
EXPECT_EQ(4U, m->ToDexPC(pc));
EXPECT_REGS(1); // Note that v1 is not in the minimal root set
}
@@ -68,7 +68,7 @@
EXPECT_EQ(0xaU, m->ToDexPC(pc));
EXPECT_REGS(1, 2, 3);
} else {
- CHECK(gJava_StackWalk_refmap_calls == 2);
+ CHECK_EQ(gJava_StackWalk_refmap_calls, 2);
EXPECT_EQ(0xaU, m->ToDexPC(pc));
EXPECT_REGS(1, 2, 3);
}
@@ -77,7 +77,7 @@
EXPECT_EQ(0x2d5U, m->ToDexPC(pc));
EXPECT_REGS(2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 25);
} else {
- CHECK(gJava_StackWalk_refmap_calls == 2);
+ CHECK_EQ(gJava_StackWalk_refmap_calls, 2);
EXPECT_EQ(0x2d5U, m->ToDexPC(pc));
EXPECT_REGS(2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 25);
}