X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fcollection.cc;h=0b2b32492230b3f83c22229291eaeb2fdce1804f;hb=033a3a1829e8a1e0d170f748f6b7824e25ec45f4;hp=86e7f864a922c4034cf29f32b1495d660be9bcd0;hpb=cc7f3ad60dd92d7e41e0efbf922bb4f6fc9a848f;p=awesomized%2Flibmemcached diff --git a/libtest/collection.cc b/libtest/collection.cc index 86e7f864..0b2b3249 100644 --- a/libtest/collection.cc +++ b/libtest/collection.cc @@ -51,6 +51,9 @@ static test_return_t runner_code(libtest::Framework* frame, try { _timer.reset(); + assert(frame); + assert(frame->runner()); + assert(run->test_fn); return_code= frame->runner()->main(run->test_fn, frame->creators_ptr()); } // Special case where check for the testing of the exception @@ -135,9 +138,9 @@ test_return_t Collection::exec() } catch (const libtest::fatal& e) { - stream::cerr(e.file(), e.line(), e.func()) << e.what(); _failed++; formatter()->failed(); + stream::make_cerr(e.file(), e.line(), e.func()) << e.what(); throw; }