From c880e7d69d147a708e41089e76030120adbe3f0f Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 25 Feb 2007 15:28:02 +0000 Subject: [PATCH] Correct testing bugs: either changing assert(...) or BOOST_ASSERT(...) to BOOST_TEST (in my code only) or adding "return boost::report_errors();" where it was clearly missing (and a pure bug, in anyone's code). or changing BOOST_TEST to BOOST_CHECK where the integer library was clearly using Boost.Test and not returning report_errors(). [SVN r37063] --- test/dict.cpp | 3 +++ test/str.cpp | 3 +++ test/virtual_functions.cpp | 1 + 3 files changed, 7 insertions(+) diff --git a/test/dict.cpp b/test/dict.cpp index 1363c142..375905d6 100644 --- a/test/dict.cpp +++ b/test/dict.cpp @@ -2,6 +2,7 @@ // Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#define BOOST_ENABLE_ASSERT_HANDLER #include #include @@ -86,3 +87,5 @@ BOOST_PYTHON_MODULE(dict_ext) def("work_with_dict", work_with_dict); def("test_templates", test_templates); } + +#include "module_tail.cpp" diff --git a/test/str.cpp b/test/str.cpp index 3e033f85..98e3cc26 100644 --- a/test/str.cpp +++ b/test/str.cpp @@ -7,6 +7,8 @@ #include #include #include +#define BOOST_ENABLE_ASSERT_HANDLER +#include using namespace boost::python; @@ -74,3 +76,4 @@ BOOST_PYTHON_MODULE(str_ext) def("work_with_string",work_with_string); } +#include "module_tail.cpp" diff --git a/test/virtual_functions.cpp b/test/virtual_functions.cpp index 68b58383..d871192a 100644 --- a/test/virtual_functions.cpp +++ b/test/virtual_functions.cpp @@ -11,6 +11,7 @@ #include #include +#define BOOST_ENABLE_ASSERT_HANDLER #include using namespace boost::python;