21 Mar
2007
21 Mar
'07
8:08 a.m.
"Sohail Somani"
Hi,
Does Boost.Test consider an exception as a failure?
In latest version answer is clear yes. In previos there maybe some bugs.
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. Gennadiy