From 9c8980e6a16769167f3f088a6a116726be73fb75 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 25 Apr 2017 01:11:18 +0100 Subject: [PATCH] Write out epoint that threw an exception after failure --- test/helpers/exception_test.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/helpers/exception_test.hpp b/test/helpers/exception_test.hpp index 39490776..842de8b1 100644 --- a/test/helpers/exception_test.hpp +++ b/test/helpers/exception_test.hpp @@ -254,7 +254,12 @@ template 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;