more exception defines

This commit is contained in:
Arvid Norberg
2008-11-03 04:23:16 +00:00
parent dd97d49753
commit 19660306e0
3 changed files with 11 additions and 2 deletions

View File

@@ -44,10 +44,13 @@ void report_failure(char const* err, char const* file, int line)
int main()
{
#ifndef BOOST_NO_EXCEPTIONS
try
{
#endif
test_main();
return tests_failure ? 1 : 0;
#ifndef BOOST_NO_EXCEPTIONS
}
catch (std::exception const& e)
{
@@ -59,5 +62,6 @@ int main()
std::cerr << "Terminated with unknown exception\n";
return 1;
}
#endif
}