From 074c28c4bcbbeff4fa7db2cc9564250385cdcdea Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 15 May 2012 11:45:55 -0700 Subject: [PATCH] avoid assert in cpp tests in debug mode --- tests/cpp_tests/font_registration_test.cpp | 1 + tests/cpp_tests/params_test.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/cpp_tests/font_registration_test.cpp b/tests/cpp_tests/font_registration_test.cpp index 57874272d..aa694f810 100644 --- a/tests/cpp_tests/font_registration_test.cpp +++ b/tests/cpp_tests/font_registration_test.cpp @@ -72,6 +72,7 @@ int main( int, char*[] ) if (!::boost::detail::test_errors()) { std::clog << "C++ fonts registration: \x1b[1;32m✓ \x1b[0m\n"; + ::boost::detail::report_errors_remind().called_report_errors_function = true; } else { return ::boost::report_errors(); } diff --git a/tests/cpp_tests/params_test.cpp b/tests/cpp_tests/params_test.cpp index 42291d858..a1f9a24a6 100644 --- a/tests/cpp_tests/params_test.cpp +++ b/tests/cpp_tests/params_test.cpp @@ -71,6 +71,7 @@ int main( int, char*[] ) if (!::boost::detail::test_errors()) { std::clog << "C++ parameters: \x1b[1;32m✓ \x1b[0m\n"; + ::boost::detail::report_errors_remind().called_report_errors_function = true; } else { return ::boost::report_errors(); }