From 6069fea76df32926aac14212b0ffe23d5507e423 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Fri, 1 May 2020 15:20:25 -0400 Subject: [PATCH] Add documentation for BOOST_TEST_NO_THROW --- doc/lightweight_test.qbk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/lightweight_test.qbk b/doc/lightweight_test.qbk index 4c1fa9d..031a6dc 100644 --- a/doc/lightweight_test.qbk +++ b/doc/lightweight_test.qbk @@ -46,6 +46,7 @@ When using `lightweight_test.hpp`, *do not forget* to #define BOOST_TEST_ALL_EQ(begin1, end1, begin2, end2) /* unspecified */ #define BOOST_TEST_ALL_WITH(begin1, end1, begin2, end2, predicate) /* unspecified */ #define BOOST_TEST_THROWS(expr, excep) /*unspecified*/ +#define BOOST_TEST_NO_THROW(expr) /*unspecified*/ namespace boost { @@ -209,6 +210,21 @@ nothing and `expr` is not evaluated. [endsect] +[section BOOST_TEST_NO_THROW] + +`` +BOOST_TEST_NO_THROW(expr) +`` + +If `BOOST_NO_EXCEPTIONS` is *not* defined and if `expr` throws an exception, +increases the error count and outputs a message containing the expression +and (if possible) the exception message. + +If `BOOST_NO_EXCEPTIONS` is defined, this macro expands to nothing and `expr` +is not evaluated. + +[endsect] + [section report_errors] ``