21 Mar
2007
21 Mar
'07
5:20 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Gennadiy Rozental
How can I make expect an exception?
Use BOOST_CHECK_THROW, BOOST_CHECK_EXCEPTION. If you want behavior similar to the "expected failures" feature it can't be done. Uncaught C++ exception is considered a fatal test case failure and can't be hidden (since the rest of the test case is skipped and we don't know how many failures actually occurs.
Ah, thanks Gennadiy, that works awesome.