Skip to content

Commit

Permalink
Fix unit tests that did not return report_errors()
Browse files Browse the repository at this point in the history
  • Loading branch information
glenfe committed Sep 17, 2018
1 parent 50899b8 commit de6cef9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/error_info_basic_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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();
}
4 changes: 2 additions & 2 deletions test/no_exceptions_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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());
}
}

Expand Down

0 comments on commit de6cef9

Please sign in to comment.