X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fframework.cc;h=b5ad738b2a88be1ff35ed91ab08e2c39d3f36376;hb=00a8f6f7d315dc3fce0b0e5a1987c8663488ae1c;hp=327c2c0de4ae65b827ec8fe340d045826e546327;hpb=f47caf2833675cce0b62a6e4ffd6764c1490a8b4;p=m6w6%2Flibmemcached diff --git a/libtest/framework.cc b/libtest/framework.cc index 327c2c0d..b5ad738b 100644 --- a/libtest/framework.cc +++ b/libtest/framework.cc @@ -118,7 +118,8 @@ void Framework::exec() _total++; - try { + try + { switch ((*iter)->exec()) { case TEST_FAILURE: @@ -144,7 +145,7 @@ void Framework::exec() catch (libtest::disconnected& e) { _failed++; - Error << "Unhandled disconnection occurred:" << e.what(); + stream::cerr(e.file(), e.line(), e.func()) << "Unhandled disconnection occurred: " << e.mesg(); throw; } catch (...)