aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-08-23 17:45:27 -0700
committerGravatar Vijay Pai <vpai@google.com>2018-08-23 17:45:27 -0700
commit4f98f82c36d47ff6b3c85b61854c093f93c15eb3 (patch)
treec7ebbbb5ab81bfe2ecb0db00c12627082a3958d3 /test
parent373cb20ea81f24948385954ecd06df199c4267c0 (diff)
Add asserts on bad verify results
Diffstat (limited to 'test')
-rw-r--r--test/core/end2end/inproc_callback_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/core/end2end/inproc_callback_test.cc b/test/core/end2end/inproc_callback_test.cc
index 653e8a4c8e..a07b4df29a 100644
--- a/test/core/end2end/inproc_callback_test.cc
+++ b/test/core/end2end/inproc_callback_test.cc
@@ -131,11 +131,13 @@ static void verify_tags(gpr_timespec deadline) {
if (tags[i] != tags_expected[i]) {
gpr_log(GPR_ERROR, "Got wrong result (%d instead of %d) for tag %d",
tags[i], tags_expected[i], static_cast<int>(i));
+ GPR_ASSERT(false);
}
tags_valid[i] = false;
tags_needed[i] = false;
} else if (done) {
gpr_log(GPR_ERROR, "Didn't get tag %d", static_cast<int>(i));
+ GPR_ASSERT(false);
}
}
}
@@ -151,6 +153,7 @@ static void verify_tags(gpr_timespec deadline) {
if (tags_valid[i]) {
gpr_log(GPR_ERROR, "Got unexpected tag %d and result %d",
static_cast<int>(i), tags[i]);
+ GPR_ASSERT(false);
}
tags_valid[i] = false;
}