From 1cb2e6b281a3363d68ce69921c15d3922e009684 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 12 Aug 2018 17:58:01 -0400 Subject: [PATCH] regressions/ck_epoch_section_2: improve logging of failure conditions. Certain environments don't provide us core dumps to work with, unfortunately. --- regressions/ck_epoch/validate/ck_epoch_section_2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/regressions/ck_epoch/validate/ck_epoch_section_2.c b/regressions/ck_epoch/validate/ck_epoch_section_2.c index daf6738..6e53b82 100644 --- a/regressions/ck_epoch/validate/ck_epoch_section_2.c +++ b/regressions/ck_epoch/validate/ck_epoch_section_2.c @@ -110,11 +110,14 @@ read_thread(void *unused CK_CC_UNUSED) } ck_epoch_begin(record, §ion[1]); - - assert(section[0].bucket != section[1].bucket); + if (section[0].bucket == section[1].bucket) { + ck_error("%u == %u\n", + section[0].bucket, section[1].bucket); + } ck_epoch_end(record, §ion[0]); - assert(ck_pr_load_uint(&record->active) > 0); + if (ck_pr_load_uint(&record->active) == 0) + ck_error("active: %u\n", record->active); if (ck_pr_load_uint(&leave) == 1) { ck_epoch_end(record, §ion[1]);