From f659e1164a07b42393da9c404b8047947a5a154a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 10 Jun 2014 04:40:57 +0300 Subject: [PATCH] Add report_errors_remind to some passing tests. --- include/boost/core/lightweight_test.hpp | 2 ++ include/boost/core/lightweight_test_trait.hpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index 2cd02e7..f5943b3 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -90,6 +90,7 @@ template inline void test_eq_impl( char const * expr1, char co { if( t == u ) { + report_errors_remind(); } else { @@ -106,6 +107,7 @@ template inline void test_ne_impl( char const * expr1, char co { if( t != u ) { + report_errors_remind(); } else { diff --git a/include/boost/core/lightweight_test_trait.hpp b/include/boost/core/lightweight_test_trait.hpp index ff03e37..0e2aab4 100644 --- a/include/boost/core/lightweight_test_trait.hpp +++ b/include/boost/core/lightweight_test_trait.hpp @@ -31,6 +31,7 @@ template< class T > inline void test_trait_impl( char const * trait, void (*)( T { if( T::value == expected ) { + report_errors_remind(); } else { @@ -41,7 +42,7 @@ template< class T > inline void test_trait_impl( char const * trait, void (*)( T << "' (should have been " << ( expected? "true": "false" ) << ")" << std::endl; - ++boost::detail::test_errors(); + ++test_errors(); } }