Add documentation for BOOST_TEST_NO_THROW

This commit is contained in:
Glen Fernandes
2020-05-01 15:20:25 -04:00
parent 3ca745f400
commit 6069fea76d

View File

@ -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]
``