|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2007-11-01 18:42:19
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();
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk