Compare commits

..

1 Commits

Author SHA1 Message Date
c87b9c55b1 Fix unit tests that did not return report_errors() 2018-09-24 19:46:13 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
#include <boost/exception/exception.hpp>
#include <boost/exception/info.hpp>
#include <boost/exception/get_error_info.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>
#include <string>
#include <string.h>
@ -25,5 +25,5 @@ main()
{
BOOST_TEST(boost::get_error_info<error_info_string>(e) && !strcmp(boost::get_error_info<error_info_string>(e)->c_str(),"doh"));
}
return 0;
return boost::report_errors();
}

View File

@ -8,7 +8,7 @@
#include <boost/throw_exception.hpp>
#include <boost/exception/info.hpp>
#include <boost/exception/diagnostic_information.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>
#include <stdlib.h>
struct
@ -39,7 +39,7 @@ boost
#ifndef BOOST_NO_RTTI
BOOST_TEST(s.find("my_tag")!=std::string::npos);
#endif
exit(0);
exit(boost::report_errors());
}
}