
1 Nov
2007
1 Nov
'07
10:42 p.m.
It seems to me that when I get an assertion in my GCC compilers the test is still being marked as "pass" I'm using lightweight test in the follow way. Does anyone have any suggestions? Robert Ramey int main(int argc, char * argv[]){ boost::serialization::global_lock::get_mutable_instance().lock(); BOOST_TRY{ test_main(argc, argv); } #ifndef BOOST_NO_EXCEPTION_STD_NAMESPACE BOOST_CATCH(const std::exception e){ BOOST_TEST(e.what()); } #endif BOOST_CATCH(...){ BOOST_TEST("failed with uncaught exception:"); } BOOST_CATCH_END boost::serialization::global_lock::get_mutable_instance().unlock(); return boost::report_errors(); }