Write out epoint that threw an exception after failure

This commit is contained in:
Daniel James
2017-04-25 01:11:18 +01:00
parent 60127d86e0
commit 9c8980e6a1

View File

@ -254,7 +254,12 @@ template <class Test> void exception_safety(Test const& f, char const* /*name*/)
} catch (test_failure) {
error_msg = "test_failure caught.";
break;
} catch (test_exception) {
} catch (test_exception e) {
if (error_count != boost::detail::test_errors()) {
BOOST_LIGHTWEIGHT_TEST_OSTREAM
<< "Iteration: " << iteration
<< " Error found for epoint: " << e.name << std::endl;
}
} catch (...) {
error_msg = "Unexpected exception.";
break;