From d2b20486a0319bcebe4fedaa805611d9e8c71ac3 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Wed, 5 Sep 2018 16:36:20 -0400 Subject: [PATCH] Call test_results() in BOOST_TEST_THROWS() --- include/boost/core/lightweight_test.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index bfffcfb..0dbcf6b 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -422,6 +422,7 @@ inline int report_errors() (#EXCEP, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION); \ } \ catch(EXCEP const&) { \ + ::boost::detail::test_results(); \ } \ catch(...) { \ ::boost::detail::throw_failed_impl \