
6 Mar
2012
6 Mar
'12
7:53 p.m.
I found it helpful to include this in my test cases: #include "boost/test/unit_test_monitor.hpp" #include "boost/exception/all.hpp" void translate(boost::exception const& e) { BOOST_FAIL(boost::diagnostic_information(e)); } struct Exception_fixture { Exception_fixture() { ::boost::unit_test::unit_test_monitor.register_exception_translatorboost::exception(&translate); } }; BOOST_GLOBAL_FIXTURE( Exception_fixture ); BOOST_AUTO_TEST_CASE( case01 ) { //test body } -- View this message in context: http://boost.2283326.n4.nabble.com/Boost-Test-Using-boost-exception-tp444740... Sent from the Boost - Users mailing list archive at Nabble.com.