From de6cef966b5c788774aac16d42eeee0fc2ad9565 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 17 Sep 2018 07:32:49 -0400 Subject: [PATCH] Fix unit tests that did not return report_errors() --- test/error_info_basic_test.cpp | 4 ++-- test/no_exceptions_test.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/error_info_basic_test.cpp b/test/error_info_basic_test.cpp index aa8d6a7..488360d 100644 --- a/test/error_info_basic_test.cpp +++ b/test/error_info_basic_test.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include #include @@ -25,5 +25,5 @@ main() { BOOST_TEST(boost::get_error_info(e) && !strcmp(boost::get_error_info(e)->c_str(),"doh")); } - return 0; + return boost::report_errors(); } diff --git a/test/no_exceptions_test.cpp b/test/no_exceptions_test.cpp index 2609be6..d335fb6 100644 --- a/test/no_exceptions_test.cpp +++ b/test/no_exceptions_test.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include 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()); } }