diff --git a/build/msvc71_proj/boost_test_library.sln b/build/msvc71_proj/boost_test_library.sln index 3b4efbbd..f593cadb 100644 --- a/build/msvc71_proj/boost_test_library.sln +++ b/build/msvc71_proj/boost_test_library.sln @@ -97,6 +97,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_fp_comparisons", "test EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_tools_test", "test_tools_test.vcproj", "{2F0DF83D-F8E3-47E8-AD95-A3C73C2584B3}" ProjectSection(ProjectDependencies) = postProject + {9466C117-7AE0-4AFD-B327-E1612568BCF1} = {9466C117-7AE0-4AFD-B327-E1612568BCF1} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unit_test_example1", "unit_test_example1.vcproj", "{83EA2604-9468-4BB6-9DEF-44E1DD034DEE}" @@ -135,7 +136,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unit_test_suite_ex_test", " EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_case_template_test", "test_case_template_test.vcproj", "{CBB6EB43-0BE0-44E9-A4B4-B4B8437410D9}" ProjectSection(ProjectDependencies) = postProject - {9466C117-7AE0-4AFD-B327-E1612568BCF1} = {9466C117-7AE0-4AFD-B327-E1612568BCF1} + {30AE2EB6-0F78-4D13-9D67-AA5A1052B4C7} = {30AE2EB6-0F78-4D13-9D67-AA5A1052B4C7} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "auto_unit_test_test_mult", "auto_unit_test_test_mult.vcproj", "{E782C9A9-A9AC-41AA-82C1-5ECF8798ED81}" diff --git a/example/unit_test_example3.cpp b/example/unit_test_example3.cpp index 145116e2..f36994d8 100644 --- a/example/unit_test_example3.cpp +++ b/example/unit_test_example3.cpp @@ -2,7 +2,7 @@ // (C) Copyright Gennadiy Rozental & Ullrich Koethe 2001. // (C) Copyright Gennadiy Rozental 2001-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -95,11 +95,11 @@ struct account_test { // reports 'fatal error in "account_test::test_deposit": test std::not_equal_to()(m_account.balance(), 999.9) failed // for (999.9, 999.9)' on error - BOOST_REQUIRE_PREDICATE( std::not_equal_to(), 2, (m_account.balance(), 999.9) ); + BOOST_REQUIRE_PREDICATE( std::not_equal_to(), (m_account.balance())(999.9) ); // reports 'fatal error in "account_test::test_deposit": test close_at_tolerance( 1e-9 )( m_account.balance(), 605.5) // failed for (actual_value, 605.5) - BOOST_REQUIRE_PREDICATE( close_at_tolerance( 1e-9 ), 2, (m_account.balance(), 605.5) ); + BOOST_REQUIRE_PREDICATE( close_at_tolerance( 1e-9 ), (m_account.balance())(605.5) ); } void test_withdraw() diff --git a/test/Jamfile b/test/Jamfile index 4cd1f2af..ecb53c02 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -67,7 +67,7 @@ test-suite "unit_test_framework_test" [ test-btl-lib run : test_case_template_test : boost_test_exec_monitor ] [ test-btl-lib run : custom_exception_test : boost_unit_test_framework ] [ test-btl-lib run : fixed_mapping_test : boost_unit_test_framework ] -# [ test-btl-lib run : ifstream_line_iterator_test : boost_unit_test_framework : $(test-dir)test_files/ifstream_line_iterator.tst1 $(test-dir)test_files/ifstream_line_iterator.tst2 ] + [ test-btl-lib run : ifstream_line_iterator_test : boost_unit_test_framework : $(test-dir)test_files/ifstream_line_iterator.tst1 $(test-dir)test_files/ifstream_line_iterator.tst2 ] [ test-btl-lib run : algorithms_test : boost_unit_test_framework ] [ test-btl-lib run : token_iterator_test : boost_unit_test_framework ] ; diff --git a/test/algorithms_test.cpp b/test/algorithms_test.cpp index 577286bc..4512c652 100755 --- a/test/algorithms_test.cpp +++ b/test/algorithms_test.cpp @@ -14,9 +14,9 @@ // Boost.Test #include -#include -#include -#include +#include +#include +#include namespace utf = boost::unit_test; using utf::const_string; @@ -131,6 +131,9 @@ init_unit_test_suite( int argc, char* argv[] ) // History : // // $Log$ +// Revision 1.3 2005/01/30 03:35:55 rogeeff +// no message +// // Revision 1.2 2004/06/29 04:32:50 rogeeff // no message // diff --git a/test/basic_cstring_test.cpp b/test/basic_cstring_test.cpp index 7f49ea78..893a631c 100644 --- a/test/basic_cstring_test.cpp +++ b/test/basic_cstring_test.cpp @@ -16,9 +16,10 @@ #include #include -#include -#include -#include +#include +#include +#include +#include namespace utf = boost::unit_test; namespace tt = boost::test_tools; using utf::const_string; @@ -67,7 +68,7 @@ struct string_literal mutable_char buff[100]; }; -#define LITERAL( s ) ((CharT*)string_literal( s, sizeof( s ) ).buff) +#define LITERAL( s ) (CharT*)string_literal( s, sizeof( s ) ).buff #define LOCAL_DEF( name, s ) \ string_literal BOOST_JOIN( sl, __LINE__)(s, sizeof( s )); \ utf::basic_cstring name( (CharT*)(BOOST_JOIN( sl, __LINE__).buff) ) \ @@ -507,6 +508,9 @@ init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) // History : // // $Log$ +// Revision 1.9 2005/01/30 03:35:55 rogeeff +// no message +// // Revision 1.8 2004/11/28 04:28:56 agurtovoy // merge RC_1_32_0 fixes // diff --git a/test/class_properties_test.cpp b/test/class_properties_test.cpp index 328ea936..3644826b 100644 --- a/test/class_properties_test.cpp +++ b/test/class_properties_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2003-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -14,7 +14,7 @@ // Boost.Test #include -#include +#include using namespace boost::unit_test; // STL @@ -26,7 +26,7 @@ struct A { operator bool() const { return true; } } a; -struct B { +struct B { int foo() const { return 1; } int foo() { return 2; } @@ -194,11 +194,10 @@ init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) { // *************************************************************************** // Revision History : -// +// // $Log$ -// Revision 1.4 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.5 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.3 2005/01/18 08:30:08 rogeeff // unit_test_log rework: diff --git a/test/errors_handling_test.cpp b/test/errors_handling_test.cpp index d4f76e5e..8dc33ae5 100644 --- a/test/errors_handling_test.cpp +++ b/test/errors_handling_test.cpp @@ -1,7 +1,7 @@ // (C) Copyright Gennadiy Rozental 2001-2004. // (C) Copyright Beman Dawes 2001. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) @@ -18,6 +18,8 @@ // Boost.Test #include #include +#include +#include #include #include using namespace boost::unit_test; @@ -26,12 +28,18 @@ using namespace boost::test_tools; // STL #include -struct this_test_log_formatter : public boost::unit_test::ut_detail::compiler_log_formatter +struct this_test_log_formatter : public boost::unit_test::ut_detail::compiler_log_formatter { void print_prefix( std::ostream& output, boost::unit_test::const_string, std::size_t line ) { output << line << ": "; } + + void test_case_exit( std::ostream& output, test_case const& tc, long testing_time_in_mks ) + { + output << "Leaving test " << ( tc.p_type ? "case" : "suite" ) << " \"" << tc.p_name << "\""; + } + }; //____________________________________________________________________________// @@ -67,7 +75,7 @@ namespace { case et_fatal_user: unit_test_result::instance().increase_expected_failures(); - BOOST_CRITICAL_ERROR( "error_on_demand() BOOST_CRITICAL_ERROR" ); + BOOST_FAIL( "error_on_demand() BOOST_FAIL" ); BOOST_ERROR( "Should never reach this code!" ); break; @@ -158,7 +166,7 @@ test_main( int argc, char * argv[] ) #define PATTERN_FILE_NAME "errors_handling_test.pattern" - std::string pattern_file_name( argc == 1 + std::string pattern_file_name( argc == 1 ? (match_or_save ? "./test_files/" PATTERN_FILE_NAME : PATTERN_FILE_NAME) : argv[1] ); @@ -228,7 +236,7 @@ test_main( int argc, char * argv[] ) continue; } - { + { unit_test_result_saver saver; unit_test_log.start(); unit_test_log.header( 1 ); @@ -255,9 +263,8 @@ test_main( int argc, char * argv[] ) // Revision History : // // $Log$ -// Revision 1.26 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.27 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.25 2005/01/18 08:30:08 rogeeff // unit_test_log rework: diff --git a/test/fixed_mapping_test.cpp b/test/fixed_mapping_test.cpp index 0e584419..70ba6c5a 100644 --- a/test/fixed_mapping_test.cpp +++ b/test/fixed_mapping_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2001-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -16,9 +16,9 @@ #define BOOST_AUTO_TEST_MAIN #include -#include -#include -#include +#include +#include +#include namespace utf = boost::unit_test; namespace tt = boost::test_tools; @@ -28,7 +28,7 @@ using utf::const_string; BOOST_AUTO_UNIT_TEST( test_default_compare ) { - utf::fixed_mapping test_mapping( + utf::fixed_mapping test_mapping( "Key1", 1, "Key2", 2, "QWE" , 3, @@ -56,7 +56,7 @@ BOOST_AUTO_UNIT_TEST( test_default_compare ) BOOST_AUTO_UNIT_TEST( test_custom_compare ) { - utf::fixed_mapping > test_mapping( + utf::fixed_mapping > test_mapping( "Key1", 1, "Key2", 2, "QWE" , 3, @@ -82,9 +82,8 @@ BOOST_AUTO_UNIT_TEST( test_custom_compare ) // History : // // $Log$ -// Revision 1.4 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.5 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.3 2005/01/18 08:30:09 rogeeff // unit_test_log rework: diff --git a/test/ifstream_line_iterator_test.cpp b/test/ifstream_line_iterator_test.cpp index 455b4ad0..1aeebffa 100644 --- a/test/ifstream_line_iterator_test.cpp +++ b/test/ifstream_line_iterator_test.cpp @@ -15,7 +15,7 @@ // Boost.Test #include -#include +#include namespace utf = boost::unit_test; @@ -82,6 +82,9 @@ init_unit_test_suite( int argc, char* argv[] ) // History : // // $Log$ +// Revision 1.4 2005/01/30 03:35:55 rogeeff +// no message +// // Revision 1.3 2004/06/05 11:04:17 rogeeff // no message // diff --git a/test/output_test_stream_test.cpp b/test/output_test_stream_test.cpp index 7835dd0d..12a0a509 100644 --- a/test/output_test_stream_test.cpp +++ b/test/output_test_stream_test.cpp @@ -14,7 +14,8 @@ // Boost.Test #include -using boost::test_toolbox::output_test_stream; +#include +using boost::test_tools::output_test_stream; using boost::unit_test::test_suite; // STL @@ -215,6 +216,9 @@ init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) { // Revision History : // // $Log$ +// Revision 1.19 2005/01/30 03:35:55 rogeeff +// no message +// // Revision 1.18 2004/06/05 11:04:17 rogeeff // no message // diff --git a/test/parameterized_test_test.cpp b/test/parameterized_test_test.cpp index dd327b3c..68cca0ec 100644 --- a/test/parameterized_test_test.cpp +++ b/test/parameterized_test_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2002-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -16,18 +16,23 @@ #include #include #include +#include #if !defined ( __GNUC__ ) || __GNUC__ > 2 -#include +#include typedef boost::onullstream onullstream_type; #else -typedef boost::test_toolbox::output_test_stream onullstream_type; +#include +typedef boost::test_tools::output_test_stream onullstream_type; #endif namespace utf=boost::unit_test; +// BOOST +#include + +// STL #include #include -#include //____________________________________________________________________________// @@ -57,11 +62,11 @@ void test1( int i ) #endif int test_main( int, char* [] ) { - utf::unit_test_counter num_of_failures; + utf::counter_t num_of_failures; bool exception_caught; bool passed; onullstream_type null_output; - boost::scoped_ptr test; + boost::scoped_ptr test; utf::unit_test_log.set_stream( null_output ); { @@ -81,7 +86,7 @@ int test_main( int, char* [] ) { utf::unit_test_log.set_stream( null_output ); { utf::unit_test_result_saver saver; - int test_data[] = { 1, 2, 2 }; + int test_data[] = { 1, 2, 2 }; test.reset( BOOST_PARAM_TEST_CASE__( &test0, (int*)test_data, (int*)test_data + sizeof(test_data)/sizeof(int) ) ); test->run(); @@ -96,7 +101,7 @@ int test_main( int, char* [] ) { utf::unit_test_log.set_stream( null_output ); { utf::unit_test_result_saver saver; - int test_data[] = { 1, 1, 2 }; + int test_data[] = { 1, 1, 2 }; test.reset( BOOST_PARAM_TEST_CASE__( &test0, (int*)test_data, (int*)test_data + sizeof(test_data)/sizeof(int) ) ); test->run(); @@ -111,7 +116,7 @@ int test_main( int, char* [] ) { utf::unit_test_log.set_stream( null_output ); { utf::unit_test_result_saver saver; - int test_data[] = { 1, 1, 1 }; + int test_data[] = { 1, 1, 1 }; test.reset( BOOST_PARAM_TEST_CASE__( &test0, (int*)test_data, (int*)test_data + sizeof(test_data)/sizeof(int) ) ); test->run(); @@ -126,7 +131,7 @@ int test_main( int, char* [] ) { utf::unit_test_log.set_stream( null_output ); { utf::unit_test_result_saver saver; - int test_data[] = { 6, 6, 6 }; + int test_data[] = { 6, 6, 6 }; test.reset( BOOST_PARAM_TEST_CASE__( &test1, (int*)test_data, (int*)test_data + sizeof(test_data)/sizeof(int) ) ); test->run(); @@ -143,7 +148,7 @@ int test_main( int, char* [] ) { utf::unit_test_log.set_stream( null_output ); { utf::unit_test_result_saver saver; - int test_data[] = { 0, 3, 9 }; + int test_data[] = { 0, 3, 9 }; test.reset( BOOST_PARAM_TEST_CASE__( &test1, (int*)test_data, (int*)test_data + sizeof(test_data)/sizeof(int) ) ); test->run(); @@ -173,7 +178,7 @@ int test_main( int, char* [] ) { utf::unit_test_log.set_stream( null_output ); { utf::unit_test_result_saver saver; - int test_data[] = { 3, 2, 6 }; + int test_data[] = { 3, 2, 6 }; test.reset( BOOST_PARAM_TEST_CASE__( &test1, (int*)test_data, (int*)test_data + sizeof(test_data)/sizeof(int) ) ); test->run(); @@ -192,11 +197,10 @@ int test_main( int, char* [] ) { // *************************************************************************** // Revision History : -// +// // $Log$ -// Revision 1.16 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.17 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.15 2005/01/18 08:30:09 rogeeff // unit_test_log rework: diff --git a/test/result_report_test.cpp b/test/result_report_test.cpp index 21bda20a..80abdc3d 100644 --- a/test/result_report_test.cpp +++ b/test/result_report_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2001-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -17,11 +17,13 @@ #include #include #include +#include +#include #include #if !defined ( __GNUC__ ) || __GNUC__ > 2 -#include +#include #endif -using boost::test_toolbox::output_test_stream; +using boost::test_tools::output_test_stream; using namespace boost::unit_test; // BOOST @@ -36,7 +38,7 @@ using namespace boost::unit_test; //____________________________________________________________________________// void good_foo() {} -void bad_foo() { +void bad_foo() { #if !defined ( __GNUC__ ) || __GNUC__ > 2 boost::onullstream null_stream; #else @@ -77,16 +79,16 @@ void check( output_test_stream& output ) //____________________________________________________________________________// -int -test_main( int argc, char* argv[] ) +int +test_main( int argc, char* argv[] ) { bool match_or_save = retrieve_framework_parameter( SAVE_TEST_PATTERN, &argc, argv ) != "yes"; const_string pattern_file_name( argc > 1 ? argv[1] : "./test_files/result_report_test.pattern" ); output_test_stream output( pattern_file_name, match_or_save ); - + test_suite* ts_0 = BOOST_TEST_SUITE( "0 test cases inside" ); - + test_suite* ts_1 = BOOST_TEST_SUITE( "1 test cases inside" ); ts_1->add( BOOST_TEST_CASE( good_foo ) ); @@ -134,7 +136,7 @@ test_main( int argc, char* argv[] ) check( output ); const_string output_format = retrieve_framework_parameter( OUTPUT_FORMAT, &argc, argv ); - + if( output_format.empty() ) { unit_test_result::set_report_format( retrieve_framework_parameter( REPORT_FORMAT, &argc, argv ) ); } @@ -146,11 +148,10 @@ test_main( int argc, char* argv[] ) // *************************************************************************** // Revision History : -// +// // $Log$ -// Revision 1.17 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.18 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.16 2005/01/18 08:30:09 rogeeff // unit_test_log rework: diff --git a/test/test_case_template_test.cpp b/test/test_case_template_test.cpp index 05e2c318..ba42b61a 100644 --- a/test/test_case_template_test.cpp +++ b/test/test_case_template_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2003-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -17,15 +17,16 @@ #include #include #include +#include #if !defined ( __GNUC__ ) || __GNUC__ > 2 -#include +#include typedef boost::onullstream onullstream_type; #else -typedef boost::test_toolbox::output_test_stream onullstream_type; +typedef boost::test_tools::output_test_stream onullstream_type; #endif -// Boost +// BOOST #include #include #include @@ -72,12 +73,12 @@ BOOST_META_FUNC_TEST_CASE( test2 ); //____________________________________________________________________________// -int test_main( int, char* [] ) +int test_main( int, char* [] ) { - tf::unit_test_counter num_of_failures; + tf::counter_t num_of_failures; bool exception_caught; onullstream_type null_output; - boost::scoped_ptr test; + boost::scoped_ptr test; tf::unit_test_log.set_stream( null_output ); @@ -152,11 +153,10 @@ int test_main( int, char* [] ) // *************************************************************************** // Revision History : -// +// // $Log$ -// Revision 1.10 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.11 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.9 2005/01/18 08:30:09 rogeeff // unit_test_log rework: @@ -165,22 +165,6 @@ int test_main( int, char* [] ) // straitend interface between log and formatters // change compiler like formatter name // minimized unit_test_log interface and reworked to use explicit calls -// -// Revision 1.8 2004/10/05 04:23:54 rogeeff -// borland fix -// -// Revision 1.7 2004/05/21 06:26:10 rogeeff -// licence update -// -// Revision 1.6 2004/05/11 11:05:06 rogeeff -// basic_cstring introduced and used everywhere -// class properties reworked -// namespace names shortened -// -// Revision 1.5 2003/12/01 00:42:38 rogeeff -// prerelease cleaning -// - // *************************************************************************** // EOF diff --git a/test/test_exec_fail1.cpp b/test/test_exec_fail1.cpp index bde525bc..01ebf480 100644 --- a/test/test_exec_fail1.cpp +++ b/test/test_exec_fail1.cpp @@ -28,13 +28,15 @@ int test_main( int, char* [] ) // note the name // Revision History : // // $Log$ +// Revision 1.13 2005/01/30 03:35:55 rogeeff +// no message +// // Revision 1.12 2004/05/21 06:26:10 rogeeff // licence update // // Revision 1.11 2003/12/01 00:42:38 rogeeff // prerelease cleaning // - // *************************************************************************** // EOF diff --git a/test/test_files/errors_handling_test.pattern b/test/test_files/errors_handling_test.pattern index 8bbc7951..35b3e30b 100644 --- a/test/test_files/errors_handling_test.pattern +++ b/test/test_files/errors_handling_test.pattern @@ -50,7 +50,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function" (free function) -65: error in "bad_function": error_on_demand() BOOST_ERROR +73: error in "bad_function": error_on_demand() BOOST_ERROR Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -61,7 +61,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) -65: error in "bad_test::test": error_on_demand() BOOST_ERROR +73: error in "bad_test::test": error_on_demand() BOOST_ERROR Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -72,7 +72,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) -65: error in "bad_function_param": error_on_demand() BOOST_ERROR +73: error in "bad_function_param": error_on_demand() BOOST_ERROR Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -83,7 +83,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -95,7 +95,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function" (free function) Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -107,7 +107,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -119,7 +119,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -131,7 +131,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -143,7 +143,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function" (free function) Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -155,7 +155,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -167,7 +167,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -179,7 +179,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -190,7 +190,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function" (free function) -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -201,7 +201,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -212,7 +212,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -223,7 +223,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -235,8 +235,8 @@ Entering test suite "Errors handling test" Entering test case "bad_function" (free function) Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -248,8 +248,8 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -261,8 +261,8 @@ Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -274,8 +274,8 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -330,7 +330,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function" (free function) -65: error in "bad_function": error_on_demand() BOOST_ERROR +73: error in "bad_function": error_on_demand() BOOST_ERROR Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -341,7 +341,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) -65: error in "bad_test::test": error_on_demand() BOOST_ERROR +73: error in "bad_test::test": error_on_demand() BOOST_ERROR Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -352,7 +352,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) -65: error in "bad_function_param": error_on_demand() BOOST_ERROR +73: error in "bad_function_param": error_on_demand() BOOST_ERROR Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -363,7 +363,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -375,7 +375,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function" (free function) Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -387,7 +387,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -399,7 +399,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -411,7 +411,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -423,7 +423,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function" (free function) Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -435,7 +435,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -447,7 +447,7 @@ Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -459,7 +459,7 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -470,7 +470,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function" (free function) -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -481,7 +481,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -492,7 +492,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -503,7 +503,7 @@ Running 1 test case... Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -515,8 +515,8 @@ Entering test suite "Errors handling test" Entering test case "bad_function" (free function) Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted Leaving test case "bad_function" Leaving test suite "Errors handling test" @@ -528,8 +528,8 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test" (user test case) Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted Leaving test case "bad_test::test" Leaving test suite "Errors handling test" @@ -541,8 +541,8 @@ Entering test suite "Errors handling test" Entering test case "bad_function_param" (parameterized free function) Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted Leaving test case "bad_function_param" Leaving test suite "Errors handling test" @@ -554,8 +554,8 @@ Entering test suite "Errors handling test" Entering test case "bad_test::test_param" (parameterized user test case) Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted Leaving test case "bad_test::test_param" Leaving test suite "Errors handling test" @@ -592,28 +592,28 @@ error_on_demand() BOOST_MESSAGE log level: 2; error type: user error; test case type: free function; Running 1 test case... (free function) -65: error in "bad_function": error_on_demand() BOOST_ERROR +73: error in "bad_function": error_on_demand() BOOST_ERROR =========================== log level: 2; error type: user error; test case type: user test case; Running 1 test case... (user test case) -65: error in "bad_test::test": error_on_demand() BOOST_ERROR +73: error in "bad_test::test": error_on_demand() BOOST_ERROR =========================== log level: 2; error type: user error; test case type: parameterized free function; Running 1 test case... (parameterized free function) -65: error in "bad_function_param": error_on_demand() BOOST_ERROR +73: error in "bad_function_param": error_on_demand() BOOST_ERROR =========================== log level: 2; error type: user error; test case type: parameterized user test case; Running 1 test case... (parameterized user test case) -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR =========================== @@ -621,7 +621,7 @@ log level: 2; error type: cpp exception; test case type: free function; Running 1 test case... (free function) Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -629,7 +629,7 @@ log level: 2; error type: cpp exception; test case type: user test case; Running 1 test case... (user test case) Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -637,7 +637,7 @@ log level: 2; error type: cpp exception; test case type: parameterized free func Running 1 test case... (parameterized free function) Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -645,7 +645,7 @@ log level: 2; error type: cpp exception; test case type: parameterized user test Running 1 test case... (parameterized user test case) Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -653,7 +653,7 @@ log level: 2; error type: system error; test case type: free function; Running 1 test case... (free function) Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== @@ -661,7 +661,7 @@ log level: 2; error type: system error; test case type: user test case; Running 1 test case... (user test case) Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== @@ -669,7 +669,7 @@ log level: 2; error type: system error; test case type: parameterized free func Running 1 test case... (parameterized free function) Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== @@ -677,35 +677,35 @@ log level: 2; error type: system error; test case type: parameterized user test Running 1 test case... (parameterized user test case) Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 2; error type: fatal user error; test case type: free function; Running 1 test case... (free function) -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL =========================== log level: 2; error type: fatal user error; test case type: user test case; Running 1 test case... (user test case) -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL =========================== log level: 2; error type: fatal user error; test case type: parameterized free function; Running 1 test case... (parameterized free function) -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL =========================== log level: 2; error type: fatal user error; test case type: parameterized user test case; Running 1 test case... (parameterized user test case) -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL =========================== @@ -713,8 +713,8 @@ log level: 2; error type: fatal system error; test case type: free function; Running 1 test case... (free function) Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted =========================== @@ -722,8 +722,8 @@ log level: 2; error type: fatal system error; test case type: user test case; Running 1 test case... (user test case) Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted =========================== @@ -731,8 +731,8 @@ log level: 2; error type: fatal system error; test case type: parameterized free Running 1 test case... (parameterized free function) Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted =========================== @@ -740,8 +740,8 @@ log level: 2; error type: fatal system error; test case type: parameterized user Running 1 test case... (parameterized user test case) Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted =========================== @@ -767,137 +767,137 @@ Running 1 test case... log level: 3; error type: user error; test case type: free function; Running 1 test case... -65: error in "bad_function": error_on_demand() BOOST_ERROR +73: error in "bad_function": error_on_demand() BOOST_ERROR =========================== log level: 3; error type: user error; test case type: user test case; Running 1 test case... -65: error in "bad_test::test": error_on_demand() BOOST_ERROR +73: error in "bad_test::test": error_on_demand() BOOST_ERROR =========================== log level: 3; error type: user error; test case type: parameterized free function; Running 1 test case... -65: error in "bad_function_param": error_on_demand() BOOST_ERROR +73: error in "bad_function_param": error_on_demand() BOOST_ERROR =========================== log level: 3; error type: user error; test case type: parameterized user test case; Running 1 test case... -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR =========================== log level: 3; error type: cpp exception; test case type: free function; Running 1 test case... Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 3; error type: cpp exception; test case type: user test case; Running 1 test case... Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 3; error type: cpp exception; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 3; error type: cpp exception; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 3; error type: system error; test case type: free function; Running 1 test case... Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 3; error type: system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 3; error type: system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 3; error type: system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 3; error type: fatal user error; test case type: free function; Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL =========================== log level: 3; error type: fatal user error; test case type: user test case; Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL =========================== log level: 3; error type: fatal user error; test case type: parameterized free function; Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL =========================== log level: 3; error type: fatal user error; test case type: parameterized user test case; Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL =========================== log level: 3; error type: fatal system error; test case type: free function; Running 1 test case... Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted =========================== log level: 3; error type: fatal system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted =========================== log level: 3; error type: fatal system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted =========================== log level: 3; error type: fatal system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted =========================== @@ -923,137 +923,137 @@ Running 1 test case... log level: 4; error type: user error; test case type: free function; Running 1 test case... -65: error in "bad_function": error_on_demand() BOOST_ERROR +73: error in "bad_function": error_on_demand() BOOST_ERROR =========================== log level: 4; error type: user error; test case type: user test case; Running 1 test case... -65: error in "bad_test::test": error_on_demand() BOOST_ERROR +73: error in "bad_test::test": error_on_demand() BOOST_ERROR =========================== log level: 4; error type: user error; test case type: parameterized free function; Running 1 test case... -65: error in "bad_function_param": error_on_demand() BOOST_ERROR +73: error in "bad_function_param": error_on_demand() BOOST_ERROR =========================== log level: 4; error type: user error; test case type: parameterized user test case; Running 1 test case... -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR =========================== log level: 4; error type: cpp exception; test case type: free function; Running 1 test case... Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 4; error type: cpp exception; test case type: user test case; Running 1 test case... Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 4; error type: cpp exception; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 4; error type: cpp exception; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 4; error type: system error; test case type: free function; Running 1 test case... Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 4; error type: system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 4; error type: system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 4; error type: system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 4; error type: fatal user error; test case type: free function; Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL =========================== log level: 4; error type: fatal user error; test case type: user test case; Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL =========================== log level: 4; error type: fatal user error; test case type: parameterized free function; Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL =========================== log level: 4; error type: fatal user error; test case type: parameterized user test case; Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL =========================== log level: 4; error type: fatal system error; test case type: free function; Running 1 test case... Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted =========================== log level: 4; error type: fatal system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted =========================== log level: 4; error type: fatal system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted =========================== log level: 4; error type: fatal system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted =========================== @@ -1100,112 +1100,112 @@ Running 1 test case... log level: 5; error type: cpp exception; test case type: free function; Running 1 test case... Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 5; error type: cpp exception; test case type: user test case; Running 1 test case... Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 5; error type: cpp exception; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 5; error type: cpp exception; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error +84: last checkpoint: error_on_demand() throw runtime_error =========================== log level: 5; error type: system error; test case type: free function; Running 1 test case... Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 5; error type: system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 5; error type: system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 5; error type: system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 5; error type: fatal user error; test case type: free function; Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL =========================== log level: 5; error type: fatal user error; test case type: user test case; Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL =========================== log level: 5; error type: fatal user error; test case type: parameterized free function; Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL =========================== log level: 5; error type: fatal user error; test case type: parameterized user test case; Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL =========================== log level: 5; error type: fatal system error; test case type: free function; Running 1 test case... Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted =========================== log level: 5; error type: fatal system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted =========================== log level: 5; error type: fatal system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted =========================== log level: 5; error type: fatal system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted =========================== @@ -1272,84 +1272,84 @@ Running 1 test case... log level: 6; error type: system error; test case type: free function; Running 1 test case... Exception in "bad_function": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 6; error type: system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 6; error type: system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 6; error type: system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": integer divide by zero -80: last checkpoint: error_on_demand() divide by zero +88: last checkpoint: error_on_demand() divide by zero =========================== log level: 6; error type: fatal user error; test case type: free function; Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL =========================== log level: 6; error type: fatal user error; test case type: user test case; Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL =========================== log level: 6; error type: fatal user error; test case type: parameterized free function; Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL =========================== log level: 6; error type: fatal user error; test case type: parameterized user test case; Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL =========================== log level: 6; error type: fatal system error; test case type: free function; Running 1 test case... Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted =========================== log level: 6; error type: fatal system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted =========================== log level: 6; error type: fatal system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted =========================== log level: 6; error type: fatal system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted =========================== @@ -1435,57 +1435,57 @@ Running 1 test case... log level: 7; error type: fatal user error; test case type: free function; Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL =========================== log level: 7; error type: fatal user error; test case type: user test case; Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL =========================== log level: 7; error type: fatal user error; test case type: parameterized free function; Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL =========================== log level: 7; error type: fatal user error; test case type: parameterized user test case; Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL =========================== log level: 7; error type: fatal system error; test case type: free function; Running 1 test case... Exception in "bad_function": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function": Testing aborted =========================== log level: 7; error type: fatal system error; test case type: user test case; Running 1 test case... Exception in "bad_test::test": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test": Testing aborted =========================== log level: 7; error type: fatal system error; test case type: parameterized free function; Running 1 test case... Exception in "bad_function_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_function_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_function_param": Testing aborted =========================== log level: 7; error type: fatal system error; test case type: parameterized user test case; Running 1 test case... Exception in "bad_test::test_param": memory access violation -85: last checkpoint: error_on_demand() write to an invalid address -148: fatal error in "bad_test::test_param": Testing aborted +93: last checkpoint: error_on_demand() write to an invalid address +176: fatal error in "bad_test::test_param": Testing aborted =========================== diff --git a/test/test_files/errors_handling_test.pattern2 b/test/test_files/errors_handling_test.pattern2 index 32290874..ed2d4d20 100755 --- a/test/test_files/errors_handling_test.pattern2 +++ b/test/test_files/errors_handling_test.pattern2 @@ -1,1140 +1,1140 @@ - -=========================== - -log level: 0; error type: no error; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: no error; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: no error; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: no error; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: user error; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -65: error in "bad_function": error_on_demand() BOOST_ERROR -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: user error; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -65: error in "bad_test::test": error_on_demand() BOOST_ERROR -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: user error; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -65: error in "bad_function_param": error_on_demand() BOOST_ERROR -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: user error; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: cpp exception; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: cpp exception; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: fatal user error; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: fatal user error; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 0; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: no error; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: no error; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: no error; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: no error; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -error_on_demand() BOOST_MESSAGE -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: user error; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -65: error in "bad_function": error_on_demand() BOOST_ERROR -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: user error; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -65: error in "bad_test::test": error_on_demand() BOOST_ERROR -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: user error; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -65: error in "bad_function_param": error_on_demand() BOOST_ERROR -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: user error; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: cpp exception; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: cpp exception; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: fatal user error; test case type: free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function" -(free function) -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_function" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: fatal user error; test case type: user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test" -(user test case) -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_test::test" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_function_param" -(parameterized free function) -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_function_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 1; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -Entering test suite "Errors handling test" -Entering test case "bad_test::test_param" -(parameterized user test case) -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR -Leaving test case "bad_test::test_param" -Leaving test suite "Errors handling test" - -=========================== - -log level: 2; error type: no error; test case type: free function; -Running 1 test case... -(free function) -error_on_demand() BOOST_MESSAGE - -=========================== - -log level: 2; error type: no error; test case type: user test case; -Running 1 test case... -(user test case) -error_on_demand() BOOST_MESSAGE - -=========================== - -log level: 2; error type: no error; test case type: parameterized free function; -Running 1 test case... -(parameterized free function) -error_on_demand() BOOST_MESSAGE - -=========================== - -log level: 2; error type: no error; test case type: parameterized user test case; -Running 1 test case... -(parameterized user test case) -error_on_demand() BOOST_MESSAGE - -=========================== - -log level: 2; error type: user error; test case type: free function; -Running 1 test case... -(free function) -65: error in "bad_function": error_on_demand() BOOST_ERROR - -=========================== - -log level: 2; error type: user error; test case type: user test case; -Running 1 test case... -(user test case) -65: error in "bad_test::test": error_on_demand() BOOST_ERROR - -=========================== - -log level: 2; error type: user error; test case type: parameterized free function; -Running 1 test case... -(parameterized free function) -65: error in "bad_function_param": error_on_demand() BOOST_ERROR - -=========================== - -log level: 2; error type: user error; test case type: parameterized user test case; -Running 1 test case... -(parameterized user test case) -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR - -=========================== - -log level: 2; error type: cpp exception; test case type: free function; -Running 1 test case... -(free function) -Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 2; error type: cpp exception; test case type: user test case; -Running 1 test case... -(user test case) -Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 2; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... -(parameterized free function) -Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 2; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... -(parameterized user test case) -Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 2; error type: fatal user error; test case type: free function; -Running 1 test case... -(free function) -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 2; error type: fatal user error; test case type: user test case; -Running 1 test case... -(user test case) -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 2; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -(parameterized free function) -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 2; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -(parameterized user test case) -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 3; error type: no error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 3; error type: no error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 3; error type: no error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 3; error type: no error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 3; error type: user error; test case type: free function; -Running 1 test case... -65: error in "bad_function": error_on_demand() BOOST_ERROR - -=========================== - -log level: 3; error type: user error; test case type: user test case; -Running 1 test case... -65: error in "bad_test::test": error_on_demand() BOOST_ERROR - -=========================== - -log level: 3; error type: user error; test case type: parameterized free function; -Running 1 test case... -65: error in "bad_function_param": error_on_demand() BOOST_ERROR - -=========================== - -log level: 3; error type: user error; test case type: parameterized user test case; -Running 1 test case... -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR - -=========================== - -log level: 3; error type: cpp exception; test case type: free function; -Running 1 test case... -Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 3; error type: cpp exception; test case type: user test case; -Running 1 test case... -Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 3; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... -Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 3; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... -Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 3; error type: fatal user error; test case type: free function; -Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 3; error type: fatal user error; test case type: user test case; -Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 3; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 3; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 4; error type: no error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 4; error type: no error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 4; error type: no error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 4; error type: no error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 4; error type: user error; test case type: free function; -Running 1 test case... -65: error in "bad_function": error_on_demand() BOOST_ERROR - -=========================== - -log level: 4; error type: user error; test case type: user test case; -Running 1 test case... -65: error in "bad_test::test": error_on_demand() BOOST_ERROR - -=========================== - -log level: 4; error type: user error; test case type: parameterized free function; -Running 1 test case... -65: error in "bad_function_param": error_on_demand() BOOST_ERROR - -=========================== - -log level: 4; error type: user error; test case type: parameterized user test case; -Running 1 test case... -65: error in "bad_test::test_param": error_on_demand() BOOST_ERROR - -=========================== - -log level: 4; error type: cpp exception; test case type: free function; -Running 1 test case... -Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 4; error type: cpp exception; test case type: user test case; -Running 1 test case... -Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 4; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... -Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 4; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... -Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 4; error type: fatal user error; test case type: free function; -Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 4; error type: fatal user error; test case type: user test case; -Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 4; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 4; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 5; error type: no error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 5; error type: no error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 5; error type: no error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 5; error type: no error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 5; error type: user error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 5; error type: user error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 5; error type: user error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 5; error type: user error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 5; error type: cpp exception; test case type: free function; -Running 1 test case... -Exception in "bad_function": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 5; error type: cpp exception; test case type: user test case; -Running 1 test case... -Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 5; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... -Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 5; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... -Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message -76: last checkpoint: error_on_demand() throw runtime_error - -=========================== - -log level: 5; error type: fatal user error; test case type: free function; -Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 5; error type: fatal user error; test case type: user test case; -Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 5; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 5; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 6; error type: no error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 6; error type: no error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 6; error type: no error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 6; error type: no error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 6; error type: user error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 6; error type: user error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 6; error type: user error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 6; error type: user error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 6; error type: cpp exception; test case type: free function; -Running 1 test case... - -=========================== - -log level: 6; error type: cpp exception; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 6; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 6; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 6; error type: fatal user error; test case type: free function; -Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 6; error type: fatal user error; test case type: user test case; -Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 6; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 6; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 7; error type: no error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 7; error type: no error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 7; error type: no error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 7; error type: no error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 7; error type: user error; test case type: free function; -Running 1 test case... - -=========================== - -log level: 7; error type: user error; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 7; error type: user error; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 7; error type: user error; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 7; error type: cpp exception; test case type: free function; -Running 1 test case... - -=========================== - -log level: 7; error type: cpp exception; test case type: user test case; -Running 1 test case... - -=========================== - -log level: 7; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... - -=========================== - -log level: 7; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... - -=========================== - -log level: 7; error type: fatal user error; test case type: free function; -Running 1 test case... -70: fatal error in "bad_function": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 7; error type: fatal user error; test case type: user test case; -Running 1 test case... -70: fatal error in "bad_test::test": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 7; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... -70: fatal error in "bad_function_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 7; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... -70: fatal error in "bad_test::test_param": error_on_demand() BOOST_CRITICAL_ERROR - -=========================== - -log level: 8; error type: no error; test case type: free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: no error; test case type: user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: no error; test case type: parameterized free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: no error; test case type: parameterized user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: user error; test case type: free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: user error; test case type: user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: user error; test case type: parameterized free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: user error; test case type: parameterized user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: cpp exception; test case type: free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: cpp exception; test case type: user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: cpp exception; test case type: parameterized free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: cpp exception; test case type: parameterized user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: fatal user error; test case type: free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: fatal user error; test case type: user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: fatal user error; test case type: parameterized free function; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 8; error type: fatal user error; test case type: parameterized user test case; -Running 1 test case... - -0% 10 20 30 40 50 60 70 80 90 100% -|----|----|----|----|----|----|----|----|----|----| -*************************************************** - -=========================== - -log level: 9; error type: no error; test case type: free function; - -=========================== - -log level: 9; error type: no error; test case type: user test case; - -=========================== - -log level: 9; error type: no error; test case type: parameterized free function; - -=========================== - -log level: 9; error type: no error; test case type: parameterized user test case; - -=========================== - -log level: 9; error type: user error; test case type: free function; - -=========================== - -log level: 9; error type: user error; test case type: user test case; - -=========================== - -log level: 9; error type: user error; test case type: parameterized free function; - -=========================== - -log level: 9; error type: user error; test case type: parameterized user test case; - -=========================== - -log level: 9; error type: cpp exception; test case type: free function; - -=========================== - -log level: 9; error type: cpp exception; test case type: user test case; - -=========================== - -log level: 9; error type: cpp exception; test case type: parameterized free function; - -=========================== - -log level: 9; error type: cpp exception; test case type: parameterized user test case; - -=========================== - -log level: 9; error type: fatal user error; test case type: free function; - -=========================== - -log level: 9; error type: fatal user error; test case type: user test case; - -=========================== - -log level: 9; error type: fatal user error; test case type: parameterized free function; - -=========================== - -log level: 9; error type: fatal user error; test case type: parameterized user test case; - -Test case "call_test_main" passed with: -160 assertions out of 160 passed - 0 assertions out of 160 failed + +=========================== + +log level: 0; error type: no error; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: no error; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: no error; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: no error; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: user error; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +73: error in "bad_function": error_on_demand() BOOST_ERROR +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: user error; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +73: error in "bad_test::test": error_on_demand() BOOST_ERROR +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: user error; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +73: error in "bad_function_param": error_on_demand() BOOST_ERROR +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: user error; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: cpp exception; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +Exception in "bad_function": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: cpp exception; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: fatal user error; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: fatal user error; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 0; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: no error; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: no error; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: no error; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: no error; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +error_on_demand() BOOST_MESSAGE +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: user error; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +73: error in "bad_function": error_on_demand() BOOST_ERROR +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: user error; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +73: error in "bad_test::test": error_on_demand() BOOST_ERROR +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: user error; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +73: error in "bad_function_param": error_on_demand() BOOST_ERROR +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: user error; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: cpp exception; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +Exception in "bad_function": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: cpp exception; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: fatal user error; test case type: free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function" +(free function) +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL +Leaving test case "bad_function" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: fatal user error; test case type: user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test" +(user test case) +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL +Leaving test case "bad_test::test" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_function_param" +(parameterized free function) +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL +Leaving test case "bad_function_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 1; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +Entering test suite "Errors handling test" +Entering test case "bad_test::test_param" +(parameterized user test case) +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL +Leaving test case "bad_test::test_param" +Leaving test suite "Errors handling test" + +=========================== + +log level: 2; error type: no error; test case type: free function; +Running 1 test case... +(free function) +error_on_demand() BOOST_MESSAGE + +=========================== + +log level: 2; error type: no error; test case type: user test case; +Running 1 test case... +(user test case) +error_on_demand() BOOST_MESSAGE + +=========================== + +log level: 2; error type: no error; test case type: parameterized free function; +Running 1 test case... +(parameterized free function) +error_on_demand() BOOST_MESSAGE + +=========================== + +log level: 2; error type: no error; test case type: parameterized user test case; +Running 1 test case... +(parameterized user test case) +error_on_demand() BOOST_MESSAGE + +=========================== + +log level: 2; error type: user error; test case type: free function; +Running 1 test case... +(free function) +73: error in "bad_function": error_on_demand() BOOST_ERROR + +=========================== + +log level: 2; error type: user error; test case type: user test case; +Running 1 test case... +(user test case) +73: error in "bad_test::test": error_on_demand() BOOST_ERROR + +=========================== + +log level: 2; error type: user error; test case type: parameterized free function; +Running 1 test case... +(parameterized free function) +73: error in "bad_function_param": error_on_demand() BOOST_ERROR + +=========================== + +log level: 2; error type: user error; test case type: parameterized user test case; +Running 1 test case... +(parameterized user test case) +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR + +=========================== + +log level: 2; error type: cpp exception; test case type: free function; +Running 1 test case... +(free function) +Exception in "bad_function": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 2; error type: cpp exception; test case type: user test case; +Running 1 test case... +(user test case) +Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 2; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... +(parameterized free function) +Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 2; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... +(parameterized user test case) +Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 2; error type: fatal user error; test case type: free function; +Running 1 test case... +(free function) +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL + +=========================== + +log level: 2; error type: fatal user error; test case type: user test case; +Running 1 test case... +(user test case) +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL + +=========================== + +log level: 2; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +(parameterized free function) +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 2; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +(parameterized user test case) +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 3; error type: no error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 3; error type: no error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 3; error type: no error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 3; error type: no error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 3; error type: user error; test case type: free function; +Running 1 test case... +73: error in "bad_function": error_on_demand() BOOST_ERROR + +=========================== + +log level: 3; error type: user error; test case type: user test case; +Running 1 test case... +73: error in "bad_test::test": error_on_demand() BOOST_ERROR + +=========================== + +log level: 3; error type: user error; test case type: parameterized free function; +Running 1 test case... +73: error in "bad_function_param": error_on_demand() BOOST_ERROR + +=========================== + +log level: 3; error type: user error; test case type: parameterized user test case; +Running 1 test case... +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR + +=========================== + +log level: 3; error type: cpp exception; test case type: free function; +Running 1 test case... +Exception in "bad_function": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 3; error type: cpp exception; test case type: user test case; +Running 1 test case... +Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 3; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... +Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 3; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... +Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 3; error type: fatal user error; test case type: free function; +Running 1 test case... +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL + +=========================== + +log level: 3; error type: fatal user error; test case type: user test case; +Running 1 test case... +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL + +=========================== + +log level: 3; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 3; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 4; error type: no error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 4; error type: no error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 4; error type: no error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 4; error type: no error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 4; error type: user error; test case type: free function; +Running 1 test case... +73: error in "bad_function": error_on_demand() BOOST_ERROR + +=========================== + +log level: 4; error type: user error; test case type: user test case; +Running 1 test case... +73: error in "bad_test::test": error_on_demand() BOOST_ERROR + +=========================== + +log level: 4; error type: user error; test case type: parameterized free function; +Running 1 test case... +73: error in "bad_function_param": error_on_demand() BOOST_ERROR + +=========================== + +log level: 4; error type: user error; test case type: parameterized user test case; +Running 1 test case... +73: error in "bad_test::test_param": error_on_demand() BOOST_ERROR + +=========================== + +log level: 4; error type: cpp exception; test case type: free function; +Running 1 test case... +Exception in "bad_function": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 4; error type: cpp exception; test case type: user test case; +Running 1 test case... +Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 4; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... +Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 4; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... +Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 4; error type: fatal user error; test case type: free function; +Running 1 test case... +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL + +=========================== + +log level: 4; error type: fatal user error; test case type: user test case; +Running 1 test case... +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL + +=========================== + +log level: 4; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 4; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 5; error type: no error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 5; error type: no error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 5; error type: no error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 5; error type: no error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 5; error type: user error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 5; error type: user error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 5; error type: user error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 5; error type: user error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 5; error type: cpp exception; test case type: free function; +Running 1 test case... +Exception in "bad_function": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 5; error type: cpp exception; test case type: user test case; +Running 1 test case... +Exception in "bad_test::test": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 5; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... +Exception in "bad_function_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 5; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... +Exception in "bad_test::test_param": std::runtime_error: test std::runtime error what() message +84: last checkpoint: error_on_demand() throw runtime_error + +=========================== + +log level: 5; error type: fatal user error; test case type: free function; +Running 1 test case... +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL + +=========================== + +log level: 5; error type: fatal user error; test case type: user test case; +Running 1 test case... +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL + +=========================== + +log level: 5; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 5; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 6; error type: no error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 6; error type: no error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 6; error type: no error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 6; error type: no error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 6; error type: user error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 6; error type: user error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 6; error type: user error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 6; error type: user error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 6; error type: cpp exception; test case type: free function; +Running 1 test case... + +=========================== + +log level: 6; error type: cpp exception; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 6; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 6; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 6; error type: fatal user error; test case type: free function; +Running 1 test case... +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL + +=========================== + +log level: 6; error type: fatal user error; test case type: user test case; +Running 1 test case... +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL + +=========================== + +log level: 6; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 6; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 7; error type: no error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 7; error type: no error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 7; error type: no error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 7; error type: no error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 7; error type: user error; test case type: free function; +Running 1 test case... + +=========================== + +log level: 7; error type: user error; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 7; error type: user error; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 7; error type: user error; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 7; error type: cpp exception; test case type: free function; +Running 1 test case... + +=========================== + +log level: 7; error type: cpp exception; test case type: user test case; +Running 1 test case... + +=========================== + +log level: 7; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... + +=========================== + +log level: 7; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... + +=========================== + +log level: 7; error type: fatal user error; test case type: free function; +Running 1 test case... +78: fatal error in "bad_function": error_on_demand() BOOST_FAIL + +=========================== + +log level: 7; error type: fatal user error; test case type: user test case; +Running 1 test case... +78: fatal error in "bad_test::test": error_on_demand() BOOST_FAIL + +=========================== + +log level: 7; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... +78: fatal error in "bad_function_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 7; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... +78: fatal error in "bad_test::test_param": error_on_demand() BOOST_FAIL + +=========================== + +log level: 8; error type: no error; test case type: free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: no error; test case type: user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: no error; test case type: parameterized free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: no error; test case type: parameterized user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: user error; test case type: free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: user error; test case type: user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: user error; test case type: parameterized free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: user error; test case type: parameterized user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: cpp exception; test case type: free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: cpp exception; test case type: user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: cpp exception; test case type: parameterized free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: cpp exception; test case type: parameterized user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: fatal user error; test case type: free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: fatal user error; test case type: user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: fatal user error; test case type: parameterized free function; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 8; error type: fatal user error; test case type: parameterized user test case; +Running 1 test case... + +0% 10 20 30 40 50 60 70 80 90 100% +|----|----|----|----|----|----|----|----|----|----| +*************************************************** + +=========================== + +log level: 9; error type: no error; test case type: free function; + +=========================== + +log level: 9; error type: no error; test case type: user test case; + +=========================== + +log level: 9; error type: no error; test case type: parameterized free function; + +=========================== + +log level: 9; error type: no error; test case type: parameterized user test case; + +=========================== + +log level: 9; error type: user error; test case type: free function; + +=========================== + +log level: 9; error type: user error; test case type: user test case; + +=========================== + +log level: 9; error type: user error; test case type: parameterized free function; + +=========================== + +log level: 9; error type: user error; test case type: parameterized user test case; + +=========================== + +log level: 9; error type: cpp exception; test case type: free function; + +=========================== + +log level: 9; error type: cpp exception; test case type: user test case; + +=========================== + +log level: 9; error type: cpp exception; test case type: parameterized free function; + +=========================== + +log level: 9; error type: cpp exception; test case type: parameterized user test case; + +=========================== + +log level: 9; error type: fatal user error; test case type: free function; + +=========================== + +log level: 9; error type: fatal user error; test case type: user test case; + +=========================== + +log level: 9; error type: fatal user error; test case type: parameterized free function; + +=========================== + +log level: 9; error type: fatal user error; test case type: parameterized user test case; + +Test case "call_test_main" passed with: +160 assertions out of 160 passed + 0 assertions out of 160 failed diff --git a/test/test_fp_comparisons.cpp b/test/test_fp_comparisons.cpp index 6788018a..5b0dd78b 100644 --- a/test/test_fp_comparisons.cpp +++ b/test/test_fp_comparisons.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2001-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -17,8 +17,10 @@ #include #include #include +#include +#include using namespace boost::unit_test; -using namespace boost::test_toolbox; +using namespace boost::test_tools; // Boost #include @@ -30,7 +32,7 @@ using namespace boost::test_toolbox; #define CHECK_TOOL_USAGE( tool_usage, check ) \ { \ - boost::test_toolbox::output_test_stream output; \ + boost::test_tools::output_test_stream output; \ \ unit_test_log.set_stream( output ); \ { unit_test_result_saver saver; \ @@ -127,7 +129,7 @@ test_BOOST_CHECK_CLOSE( FPT = FPT() ) BOOST_CHECK_CLOSE_SHOULD_PASS( 1 , 1.0001, 1.1e-2 ); BOOST_CHECK_CLOSE_SHOULD_PASS( 1.0002, 1.0001, 1.1e-2 ); - + BOOST_CHECK_CLOSE_SHOULD_FAIL( 1 , 1.0002, 1.1e-2 ); } @@ -147,7 +149,7 @@ test_close_at_tolerance() close_at_tolerance pred( epsilon, FPC_WEAK ); CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( pred, 2, ( fp1, fp2 ) ), + BOOST_CHECK_PREDICATE( pred, (fp1)(fp2) ), output.is_empty() ); @@ -162,15 +164,15 @@ test_close_at_tolerance() epsilon = 8.1e-4; CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( close_at_tolerance( epsilon, FPC_WEAK ), 2, ( fp1, fp2 ) ), + BOOST_CHECK_PREDICATE( close_at_tolerance( epsilon, FPC_WEAK ), (fp1)(fp2) ), output.is_empty() ); CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( close_at_tolerance( epsilon ), 2, ( fp1, fp2 ) ), - output.is_equal( CHECK_PATTERN( - "error in " TEST_CASE_NAME ": test close_at_tolerance( epsilon )(fp1, fp2) " - "failed for (" << fp1 << ", " << fp2 << ")\n", 4 ) ) + BOOST_CHECK_PREDICATE( close_at_tolerance( epsilon ), (fp1)(fp2) ), + output.is_equal( CHECK_PATTERN( + "error in " TEST_CASE_NAME ": test close_at_tolerance( epsilon )( fp1, fp2 ) " + "failed for ( " << fp1 << ", " << fp2 << " )\n", 4 ) ) ); } @@ -192,11 +194,10 @@ init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) { // *************************************************************************** // Revision History : -// +// // $Log$ -// Revision 1.15 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.16 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.14 2005/01/18 08:30:09 rogeeff // unit_test_log rework: @@ -205,28 +206,6 @@ init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) { // straitend interface between log and formatters // change compiler like formatter name // minimized unit_test_log interface and reworked to use explicit calls -// -// Revision 1.13 2004/10/05 01:46:32 rogeeff -// borland fix -// -// Revision 1.12 2004/10/01 10:55:43 rogeeff -// some test errors workarrounds -// -// Revision 1.11 2004/07/19 12:07:26 rogeeff -// *** empty log message *** -// -// Revision 1.10 2004/05/21 06:26:11 rogeeff -// licence update -// -// Revision 1.9 2004/05/11 11:05:06 rogeeff -// basic_cstring introduced and used everywhere -// class properties reworked -// namespace names shortened -// -// Revision 1.8 2003/12/01 00:42:38 rogeeff -// prerelease cleaning -// - // *************************************************************************** // EOF diff --git a/test/test_tools_test.cpp b/test/test_tools_test.cpp index fe5970af..1c08b990 100644 --- a/test/test_tools_test.cpp +++ b/test/test_tools_test.cpp @@ -1,6 +1,6 @@ // (C) Copyright Gennadiy Rozental 2001-2004. // Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at +// (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. @@ -13,10 +13,12 @@ // *************************************************************************** // Boost.Test -#include +#define BOOST_AUTO_TEST_MAIN +#include #include +#include +#include using namespace boost::unit_test; -using boost::test_toolbox::extended_predicate_value; // BOOST #include @@ -32,37 +34,39 @@ using boost::test_toolbox::extended_predicate_value; #define CHECK_TOOL_USAGE( tool_usage, check ) \ { \ - boost::test_toolbox::output_test_stream output; \ + boost::test_tools::output_test_stream output; \ \ - unit_test_log.set_stream( output ); \ + unit_test_log.set_stream( output ); \ { unit_test_result_saver saver; \ tool_usage; \ } \ - unit_test_log.set_stream( std::cout ); \ - BOOST_CHECK( check ); \ + unit_test_log.set_stream( std::cout ); \ + BOOST_CHECK((check)); \ } //____________________________________________________________________________// #define CHECK_CRITICAL_TOOL_USAGE( tool_usage, nothrow_check, throw_check ) \ { \ - boost::test_toolbox::output_test_stream output; \ + boost::test_tools::output_test_stream output; \ \ - unit_test_log.set_stream( output ); \ + unit_test_log.set_stream( output ); \ try { \ { unit_test_result_saver saver; \ tool_usage; \ } \ - unit_test_log.set_stream( std::cout ); \ + unit_test_log.set_stream( std::cout ); \ BOOST_CHECK( nothrow_check ); \ - } catch( boost::test_toolbox::tt_detail::test_tool_failed const&) { \ - unit_test_log.set_stream( std::cout ); \ + } catch( boost::test_tools::tt_detail::test_tool_failed const&) { \ + unit_test_log.set_stream( std::cout ); \ BOOST_CHECK( throw_check ); \ } \ } //____________________________________________________________________________// +static char qu = '"'; + char set_unix_slash( char in ) { @@ -81,6 +85,8 @@ normalize_file_name( char const* f ) return buffer; } +//____________________________________________________________________________// + #ifdef BOOST_TEST_SHIFTED_LINE #define CHECK_PATTERN( msg, shift ) \ @@ -92,19 +98,47 @@ normalize_file_name( char const* f ) (boost::wrap_stringstream().ref() << normalize_file_name( __FILE__ ) << "(" << __LINE__ << "): " << msg).str() #endif + //____________________________________________________________________________// class bool_convertible { struct Tester {}; public: - operator Tester*() { return static_cast( 0 ) + 1; } + operator Tester*() const { return static_cast( 0 ) + 1; } }; -void -test_BOOST_CHECK() +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_WARN ) { -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK" << '\"' << +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_WARN" << qu << + + unit_test_log.set_threshold_level( log_warnings ); + + boost::wrap_stringstream ptrn; + ptrn << normalize_file_name( __FILE__ ) << "(" << (__LINE__+3) << "): " + << "warning in " TEST_CASE_NAME ": condition sizeof(int) == sizeof(short) is not satisfied\n"; + + CHECK_TOOL_USAGE( BOOST_WARN( sizeof(int) == sizeof(short) ), output.is_equal( ptrn.str() ) ); + + unit_test_log.set_threshold_level( log_successful_tests ); + + CHECK_TOOL_USAGE( + BOOST_WARN( sizeof(unsigned char) == sizeof(char) ), + output.is_equal( CHECK_PATTERN( "info: test sizeof(unsigned char) == sizeof(char) passed\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK" << qu << unit_test_log.set_threshold_level( log_all_errors ); @@ -147,11 +181,10 @@ test_BOOST_CHECK() //____________________________________________________________________________// -void -test_BOOST_REQUIRE() +BOOST_AUTO_UNIT_TEST( test_BOOST_REQUIRE ) { #undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_REQUIRE" << '\"' << +#define TEST_CASE_NAME << qu << "test_BOOST_REQUIRE" << qu << unit_test_log.set_threshold_level( log_all_errors ); @@ -169,7 +202,7 @@ test_BOOST_REQUIRE() CHECK_CRITICAL_TOOL_USAGE( BOOST_REQUIRE( j > 5 ), - false, output.is_equal( CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": test j > 5 failed\n", 2 ) ) + false, output.is_equal( CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": critical test j > 5 failed\n", 2 ) ) ); unit_test_log.set_threshold_level( log_successful_tests ); @@ -182,15 +215,531 @@ test_BOOST_REQUIRE() //____________________________________________________________________________// +BOOST_AUTO_UNIT_TEST( test_BOOST_WARN_MESSAGE ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_WARN_MESSAGE" << qu << + + unit_test_log.set_threshold_level( log_warnings ); + + CHECK_TOOL_USAGE( + BOOST_WARN_MESSAGE( sizeof(int) == sizeof(short), "memory won't be used efficiently" ), + output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME ": memory won't be used efficiently\n", 2 ) ) + ); + + int obj_size = 33; + + CHECK_TOOL_USAGE( + BOOST_WARN_MESSAGE( obj_size <= 8, "object size " << obj_size << " is too big to be efficiently passed by value" ), + output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME + ": object size 33 is too big to be efficiently passed by value\n", 3 ) ) + ); + + unit_test_log.set_threshold_level( log_successful_tests ); + CHECK_TOOL_USAGE( + BOOST_WARN_MESSAGE( obj_size > 8, "object size " << obj_size << " is too small" ), + output.is_equal( CHECK_PATTERN( "info: object size 33 is too small\n", 2 ) ) + ); + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + +boost::test_tools::predicate_result +test_pred1() +{ + boost::test_tools::predicate_result res( false ); + + res.message() << "Some explanation"; + + return res; +} + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_MESSAGE ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_MESSAGE" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_MESSAGE( 2+2 == 5, "Well, may be that what I belive in" ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": Well, may be that what I belive in\n", 2 ) ) + ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_MESSAGE( test_pred1(), "Checking predicate failed" ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": Checking predicate failed. Some explanation\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_successful_tests ); + CHECK_TOOL_USAGE( + BOOST_CHECK_MESSAGE( 2+2 == 4, "Could it fail?" ), + output.is_equal( CHECK_PATTERN( "info: Could it fail?\n", 2 ) ) + ); + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_REQUIRE_MESSAGE ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_REQUIRE_MESSAGE" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_MESSAGE( false, "Here we should stop" ), + false, output.is_equal( + CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": Here we should stop" << "\n", 3 ) ) + ); + + unit_test_log.set_threshold_level( log_successful_tests ); + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_MESSAGE( true, "That's OK" ), + output.is_equal( CHECK_PATTERN( "info: That's OK\n", 1 ) ), + false + ); + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_ERROR ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_ERROR" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_TOOL_USAGE( + BOOST_ERROR( "Fail to miss an error" ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": Fail to miss an error\n", 2 ) ) + ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_FAIL ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_FAIL" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_FAIL( "No! No! Show must go on." ), + false, output.is_equal( CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": No! No! Show must go on.\n", 2 ) ) + ); +} + +//____________________________________________________________________________// + +struct my_exception { + explicit my_exception( int ec = 0 ) : m_error_code( ec ) {} + + int m_error_code; +}; + +bool is_critical( my_exception const& ex ) { return ex.m_error_code < 0; } + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_THROW ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_THROW" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + int i=0; + CHECK_TOOL_USAGE( + BOOST_CHECK_THROW( i++, my_exception ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": exception my_exception is expected\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_warnings ); + + CHECK_TOOL_USAGE( + BOOST_WARN_THROW( i++, my_exception ), + output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME ": exception my_exception is expected\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_THROW( i++, my_exception ), + false, + output.is_equal( CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": exception my_exception is expected\n", 3 ) ) + ); + unit_test_log.set_threshold_level( log_successful_tests ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_THROW( throw my_exception(), my_exception ), + output.is_equal( CHECK_PATTERN( "info: exception my_exception is caught\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_EXCEPTION ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_EXCEPTION" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_EXCEPTION( throw my_exception( 1 ), my_exception, is_critical ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": incorrect exception my_exception is caught\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_successful_tests ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_EXCEPTION( throw my_exception( -1 ), my_exception, is_critical ), + output.is_equal( CHECK_PATTERN( "info: incorrect exception my_exception is caught\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_NO_THROW ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_NO_THROW" << qu << + + int i=0; + CHECK_TOOL_USAGE( + BOOST_CHECK_NO_THROW( i++ ), + output.is_empty() + ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_NO_THROW( throw my_exception() ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": exception thrown by throw my_exception()\n", 2 ) ) + ); +} + +//____________________________________________________________________________// + +struct B { + B( int i ) : m_i( i ) {} + + int m_i; +}; + +bool operator==( B const& b1, B const& b2 ) { return b1.m_i == b2.m_i; } +std::ostream& operator<<( std::ostream& str, B const& b ) { return str << "B(" << b.m_i << ")"; } + +//____________________________________________________________________________// + +struct C { + C( int i, int id ) : m_i( i ), m_id( id ) {} + + int m_i; + int m_id; +}; + +boost::test_tools::predicate_result +operator==( C const& c1, C const& c2 ) +{ + boost::test_tools::predicate_result res( c1.m_i == c2.m_i && c1.m_id == c2.m_id ); + + if( !res ) { + if( c1.m_i != c2.m_i ) + res.message() << "Index mismatch"; + else + res.message() << "Id mismatch"; + } + + return res; +} + +std::ostream& operator<<( std::ostream& str, C const& c ) { return str << "C(" << c.m_i << ',' << c.m_id << ")"; } + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_EQUAL ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_EQUAL" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + int i=1; + int j=2; + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( i, j ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test i == j failed [1 != 2]\n", 2 ) ) + ); + + char const* str1 = "test1"; + char const* str2 = "test12"; + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( str1, str2 ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test str1 == str2 failed [test1 != test12]\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_successful_tests ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( i+1, j ), + output.is_equal( CHECK_PATTERN( "info: test i+1 == j passed\n", 2 ) ) + ); + + char const* str3 = "1test1"; + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( str1, str3+1 ), + output.is_equal( CHECK_PATTERN( "info: test str1 == str3+1 passed\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); + + str1 = NULL; + str2 = NULL; + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( str1, str2 ), + output.is_empty() + ); + + str1 = "test"; + str2 = NULL; + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_EQUAL( str1, str2 ), + false, + output.is_equal( CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": critical test str1 == str2 failed [test != null string]\n", 3 ) ) + ); + + B b1(1); + B b2(2); + + unit_test_log.set_threshold_level( log_warnings ); + + CHECK_TOOL_USAGE( + BOOST_WARN_EQUAL( b1, b2 ), + output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME ": condition b1 == b2 is not satisfied [B(1) != B(2)]\n", 2 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); + + C c1( 0, 100 ); + C c2( 0, 101 ); + C c3( 1, 102 ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( c1, c3 ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test c1 == c3 failed [C(0,100) != C(1,102)]. Index mismatch\n", 2 ) ) + ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL( c1, c2 ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test c1 == c2 failed [C(0,100) != C(0,101)]. Id mismatch\n", 2 ) ) + ); +} + +//____________________________________________________________________________// + +bool is_even( int i ) { return i%2 == 0; } +int foo( int arg, int mod ) { return arg % mod; } +bool moo( int arg1, int arg2, int mod ) { return ((arg1+arg2) % mod) == 0; } + +BOOST_TEST_DONT_PRINT_LOG_VALUE( std::list ) + +boost::test_tools::predicate_result +compare_lists( std::list const& l1, std::list const& l2 ) +{ + if( l1.size() != l2.size() ) { + boost::test_tools::predicate_result res( false ); + + res.message() << "Different sizes [" << l1.size() << "!=" << l2.size() << "]"; + + return res; + } + + return true; +} + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_PREDICATE ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_PREDICATE" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_PREDICATE( is_even, (14) ), + output.is_empty() + ); + + int i = 17; + CHECK_TOOL_USAGE( + BOOST_CHECK_PREDICATE( is_even, (i) ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test is_even( i ) failed for ( 17 )\n", 2 ) ) + ); + + using std::not_equal_to; + + CHECK_TOOL_USAGE( + BOOST_CHECK_PREDICATE( not_equal_to(), (i)(17) ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test not_equal_to()( i, 17 ) failed for ( 17, 17 )\n", 2 ) ) + ); + + int j=15; + CHECK_TOOL_USAGE( + BOOST_CHECK_PREDICATE( boost::bind( is_even, boost::bind( &foo, _1, _2 ) ), (i)(j) ), + output.is_empty() + ); + + unit_test_log.set_threshold_level( log_warnings ); + + CHECK_TOOL_USAGE( + BOOST_WARN_PREDICATE( moo, (12)(i)(j) ), + output.is_equal( CHECK_PATTERN( + "warning in " TEST_CASE_NAME ": condition moo( 12, i, j ) is not satisfied for ( 12, 17, 15 )\n", 3 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); + + std::list l1, l2, l3; + l1.push_back( 1 ); + l3.push_back( 1 ); + l1.push_back( 2 ); + l3.push_back( 3 ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_PREDICATE( compare_lists, (l1)(l2) ), + output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test compare_lists( l1, l2 ) failed for ( , ). Different sizes [2!=0]\n", 2 ) ) + ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_REQUIRE_PREDICATE ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_REQUIRE_PREDICATE" << qu << + + int arg1 = 1; + int arg2 = 2; + + using std::less_equal; + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_PREDICATE( less_equal(), (arg1)(arg2) ), + output.is_empty(), false + ); + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_PREDICATE( less_equal(), (arg2)(arg1) ), + false, output.is_equal( CHECK_PATTERN( + "fatal error in " TEST_CASE_NAME ": critical test less_equal()( arg2, arg1 ) " + "failed for ( " << arg2 << ", " << arg1 << " )\n", 4 ) ) + ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_EQUAL_COLLECTIONS ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_EQUAL_COLLECTIONS" << qu << + + unit_test_log.set_threshold_level( log_all_errors ); + + int pattern [] = { 1, 2, 3, 4, 5, 6, 7 }; + + std::list testlist; + + testlist.push_back( 1 ); + testlist.push_back( 2 ); + testlist.push_back( 4 ); // 3 + testlist.push_back( 4 ); + testlist.push_back( 5 ); + testlist.push_back( 7 ); // 6 + testlist.push_back( 7 ); + + boost::wrap_stringstream ptrn; + + ptrn << "error in " TEST_CASE_NAME ": test { testlist.begin(), testlist.end() } == { pattern, pattern+7 } failed. " + << "\nMismatch in a position 2: 4 != 3" + << "\nMismatch in a position 5: 7 != 6\n"; + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL_COLLECTIONS( testlist.begin(), testlist.end(), pattern, pattern+7 ), + output.is_equal( CHECK_PATTERN( ptrn.str(), 2 ) ) + ); + + boost::wrap_stringstream ptrn1; + + ptrn1 << "error in " TEST_CASE_NAME ": test { testlist.begin(), testlist.end() } == { pattern, pattern+2 } failed. " + << "\nCollections size mismatch: 7 != 2\n"; + + CHECK_TOOL_USAGE( + BOOST_CHECK_EQUAL_COLLECTIONS( testlist.begin(), testlist.end(), pattern, pattern+2 ), + output.is_equal( CHECK_PATTERN( ptrn1.str(), 2 ) ) + ); +} + +//____________________________________________________________________________// + +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECK_BITWISE_EQUAL ) +{ +#undef TEST_CASE_NAME +#define TEST_CASE_NAME << qu << "test_BOOST_CHECK_BITWISE_EQUAL" << qu << + + CHECK_TOOL_USAGE( + BOOST_CHECK_BITWISE_EQUAL( 0x16, 0x16 ), + output.is_empty() + ); + + CHECK_TOOL_USAGE( + BOOST_CHECK_BITWISE_EQUAL( (char)0x06, (char)0x16 ), + output.is_equal( + CHECK_PATTERN( "error in " TEST_CASE_NAME ": test (char)0x06 =.= (char)0x16 failed. \nMismatch in a position 4\n", 3 ) ) + ); + + unit_test_log.set_threshold_level( log_warnings ); + + CHECK_TOOL_USAGE( + BOOST_WARN_BITWISE_EQUAL( (char)0x26, (char)0x04 ), + output.is_equal( + CHECK_PATTERN( "warning in " TEST_CASE_NAME ": condition (char)0x26 =.= (char)0x04 is not satisfied. " + "\nMismatch in a position 1" + "\nMismatch in a position 5\n", 5 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); + + CHECK_CRITICAL_TOOL_USAGE( + BOOST_REQUIRE_BITWISE_EQUAL( (char)0x26, (int)0x26 ), + false, + output.is_equal( + CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": critical test (char)0x26 =.= (int)0x26 failed. " + "\nOperands bit sizes mismatch: 8 != 32\n", 5 ) ) + ); + + unit_test_log.set_threshold_level( log_all_errors ); +} + +//____________________________________________________________________________// + struct A { friend std::ostream& operator<<( std::ostream& str, A const& a ) { str << "struct A"; return str;} }; -void -test_BOOST_MESSAGE() +BOOST_AUTO_UNIT_TEST( test_BOOST_MESSAGE ) { #undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_REQUIRE" << '\"' << +#define TEST_CASE_NAME << qu << "test_BOOST_REQUIRE" << qu << unit_test_log.set_threshold_level( log_messages ); @@ -233,23 +782,6 @@ test_BOOST_MESSAGE() //____________________________________________________________________________// -void -test_BOOST_WARN() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_WARN" << '\"' << - - unit_test_log.set_threshold_level( log_warnings ); - - CHECK_TOOL_USAGE( - BOOST_WARN( sizeof(int) == sizeof(short) ), - output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME - ": condition sizeof(int) == sizeof(short) is not satisfied\n", 3 ) ) - ); -} - -//____________________________________________________________________________// - class bad_func_container : public test_case { public: @@ -259,381 +791,29 @@ public: } } bad; -void -test_BOOST_CHECKPOINT() +BOOST_AUTO_UNIT_TEST( test_BOOST_CHECKPOINT ) { #undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECKPOINT" << '\"' << +#define TEST_CASE_NAME << qu << "test_BOOST_CHECKPOINT" << qu << unit_test_log.set_threshold_level( log_all_errors ); BOOST_CHECKPOINT( "Going to do a silly things" ); + boost::wrap_stringstream ptrn; + ptrn << "Exception in " TEST_CASE_NAME ": C string: some error\n" + << normalize_file_name( __FILE__ ) << "(" << (__LINE__ - 4) << "): " + << "last checkpoint: Going to do a silly things\n"; + CHECK_TOOL_USAGE( bad.run(), - output.is_equal( - (boost::wrap_stringstream().ref() - << "Exception in " TEST_CASE_NAME ": C string: some error\n" - << normalize_file_name( __FILE__ ) << "(" << 270 << "): " - << "last checkpoint: Going to do a silly things\n").str() - ) + output.is_equal( ptrn.str() ) ); } //____________________________________________________________________________// -void -test_BOOST_WARN_MESSAGE() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_WARN_MESSAGE" << '\"' << - - unit_test_log.set_threshold_level( log_warnings ); - - CHECK_TOOL_USAGE( - BOOST_WARN_MESSAGE( sizeof(int) == sizeof(short), "memory won't be used efficiently" ), - output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME ": memory won't be used efficiently\n", 2 ) ) - ); - - int obj_size = 33; - - CHECK_TOOL_USAGE( - BOOST_WARN_MESSAGE( obj_size <= 8, "object size " << obj_size << " too big to be efficiently passed by value" ), - output.is_equal( CHECK_PATTERN( "warning in " TEST_CASE_NAME - ": object size 33 too big to be efficiently passed by value\n", 3 ) ) - ); - -} - -//____________________________________________________________________________// - -void -test_BOOST_CHECK_MESSAGE() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_MESSAGE" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - - CHECK_TOOL_USAGE( - BOOST_CHECK_MESSAGE( 2+2 == 5, "Well, may be that what I belive in" ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": Well, may be that what I belive in\n", 2 ) ) - ); - -} - -//____________________________________________________________________________// - -void -test_BOOST_REQUIRE_MESSAGE() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_REQUIRE_MESSAGE" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - CHECK_CRITICAL_TOOL_USAGE( - BOOST_REQUIRE_MESSAGE( false, "Here we should stop" ), - false, output.is_equal( - CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": Here we should stop" << "\n", 3 ) ) - ); -} - -//____________________________________________________________________________// - -struct B { - B( int i ) : m_i( i ) {} - - friend bool operator==( B const& b1, B const& b2 ) { return b1.m_i == b2.m_i; } - friend std::ostream& operator<<( std::ostream& str, B const& b ) { str << "B(" << b.m_i << ")"; return str; } - - int m_i; -}; - -void -test_BOOST_CHECK_EQUAL() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_EQUAL" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - int i=1; - int j=2; - - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL( i, j ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test i == j failed [1 != 2]\n", 2 ) ) - ); - - char const* str1 = "test1"; - char const* str2 = "test12"; - - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL( str1, str2 ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test str1 == str2 failed [test1 != test12]\n", 2 ) ) - ); - - str1 = NULL; - str2 = NULL; - - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL( str1, str2 ), - output.is_empty() - ); - - str1 = "test"; - str2 = NULL; - - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL( str1, str2 ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test str1 == str2 failed [test != null string]\n", 2 ) ) - ); - - B b1(1); - B b2(2); - - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL( b1, b2 ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test b1 == b2 failed [B(1) != B(2)]\n", 2 ) ) - ); -} - -//____________________________________________________________________________// - -bool is_even( int i ) { return i%2 == 0; } -int foo( int arg, int mod ) { return arg % mod; } - -BOOST_TEST_DONT_PRINT_LOG_VALUE( std::list ) - -extended_predicate_value -compare_lists( std::list const& l1, std::list const& l2 ) -{ - if( l1.size() != l2.size() ) { - extended_predicate_value res( false ); - - res.p_message.reset( new boost::wrap_stringstream ); - - *res.p_message << " Different sizes [" << l1.size() << "!=" << l2.size() << "]"; - - return res; - } - - return true; -} - -void -test_BOOST_CHECK_PREDICATE() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_PREDICATE" << '\"' << - - CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( &is_even, 1, (14) ), - output.is_empty() - ); - - int i = 17; - CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( &is_even, 1, (i) ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test &is_even(i) failed for 17\n", 2 ) ) - ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( std::not_equal_to(), 2, (i,17) ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test std::not_equal_to()(i, 17) failed for (17, 17)\n", 2 ) ) - ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( boost::bind( &is_even, boost::bind( &foo, _1, _2 ) ), 2, (i,15) ), - output.is_empty() - ); - - std::list l1, l2, l3; - l1.push_back( 1 ); - l3.push_back( 1 ); - l1.push_back( 2 ); - l3.push_back( 3 ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_PREDICATE( &compare_lists, 2, (l1,l2) ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test &compare_lists(l1, l2) failed for (, ) Different sizes [2!=0]\n", 2 ) ) - ); -} - -//____________________________________________________________________________// - -void -test_BOOST_REQUIRE_PREDICATE() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_REQUIRE_PREDICATE" << '\"' << - - int arg1 = 1; - int arg2 = 2; - - CHECK_CRITICAL_TOOL_USAGE( - BOOST_REQUIRE_PREDICATE( std::less_equal(), 2, ( arg1, arg2 ) ), - output.is_empty(), false - ); - - CHECK_CRITICAL_TOOL_USAGE( - BOOST_REQUIRE_PREDICATE( std::less_equal(), 2, ( arg2, arg1 ) ), - false, output.is_equal( CHECK_PATTERN( - "fatal error in " TEST_CASE_NAME ": test std::less_equal()(arg2, arg1) " - "failed for (" << arg2 << ", " << arg1 << ")\n", 4 ) ) - ); -} - -//____________________________________________________________________________// - -void -test_BOOST_ERROR() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_ERROR" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - CHECK_TOOL_USAGE( - BOOST_ERROR( "Fail to miss an error" ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": Fail to miss an error\n", 2 ) ) - ); - - CHECK_CRITICAL_TOOL_USAGE( - BOOST_FAIL( "No! No! Show must go on." ), - false, output.is_equal( CHECK_PATTERN( "fatal error in " TEST_CASE_NAME ": No! No! Show must go on.\n", 2 ) ) - ); -} - -//____________________________________________________________________________// - -struct my_exception { - explicit my_exception( int ec = 0 ) : m_error_code( ec ) {} - - int m_error_code; -}; - -bool is_critical( my_exception const& ex ) { return ex.m_error_code < 0; } - -void -test_BOOST_CHECK_THROW() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_THROW" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - int i=0; - CHECK_TOOL_USAGE( - BOOST_CHECK_THROW( i++, my_exception ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": exception my_exception is expected\n", 2 ) ) - ); - - unit_test_log.set_threshold_level( log_successful_tests ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_THROW( throw my_exception(), my_exception ), - output.is_equal( CHECK_PATTERN( "info: exception my_exception is caught\n", 2 ) ) - ); - - unit_test_log.set_threshold_level( log_all_errors ); -} - -//____________________________________________________________________________// - -void -test_BOOST_CHECK_EXCEPTION() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_EXCEPTION" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_EXCEPTION( throw my_exception( 1 ), my_exception, is_critical ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": incorrect exception my_exception is caught\n", 2 ) ) - ); - - unit_test_log.set_threshold_level( log_successful_tests ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_EXCEPTION( throw my_exception( -1 ), my_exception, is_critical ), - output.is_equal( CHECK_PATTERN( "info: incorrect exception my_exception is caught\n", 2 ) ) - ); - - unit_test_log.set_threshold_level( log_all_errors ); -} - -//____________________________________________________________________________// - -void -test_BOOST_CHECK_NO_THROW() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_NO_THROW" << '\"' << - - int i=0; - CHECK_TOOL_USAGE( - BOOST_CHECK_NO_THROW( i++ ), - output.is_empty() - ); - - CHECK_TOOL_USAGE( - BOOST_CHECK_NO_THROW( throw my_exception() ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": exception was thrown by throw my_exception()\n", 2 ) ) - ); -} - -//____________________________________________________________________________// - -void -test_BOOST_CHECK_EQUAL_COLLECTIONS() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_CHECK_EQUAL_COLLECTIONS" << '\"' << - - unit_test_log.set_threshold_level( log_all_errors ); - - int pattern [] = { 1, 2, 3, 4, 5, 6, 7 }; - - std::list testlist; - - testlist.push_back( 1 ); - testlist.push_back( 2 ); - testlist.push_back( 4 ); // 3 - testlist.push_back( 4 ); - testlist.push_back( 5 ); - testlist.push_back( 7 ); // 6 - testlist.push_back( 7 ); - -#if !defined(__BORLANDC__) - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL_COLLECTIONS( testlist.begin(), testlist.end(), pattern ), - output.is_equal( CHECK_PATTERN( - "error in " TEST_CASE_NAME ": test {testlist.begin(), testlist.end()} == {pattern, ...} failed in a position 2 [4 != 3]\n" - << normalize_file_name( __FILE__ ) << "(" << __LINE__ << "): " - << "error in " TEST_CASE_NAME ": test {testlist.begin(), testlist.end()} == {pattern, ...} failed in a position 5 [7 != 6]\n" - , 6 ) ) - ); -#else - CHECK_TOOL_USAGE( - BOOST_CHECK_EQUAL_COLLECTIONS( testlist.begin(), testlist.end(), pattern ), - output.is_equal( CHECK_PATTERN( - "error in " TEST_CASE_NAME ": test {testlist.begin(), testlist.end()} == {pattern, ...} failed in a position 2 [4 != 3]\n" - << normalize_file_name( __FILE__ ) << "(" << (__LINE__-6) << "): " - << "error in " TEST_CASE_NAME ": test {testlist.begin(), testlist.end()} == {pattern, ...} failed in a position 5 [7 != 6]\n" - , 6 ) ) - ); -#endif - -} - -//____________________________________________________________________________// - -void -test_BOOST_IS_DEFINED() +BOOST_AUTO_UNIT_TEST( test_BOOST_IS_DEFINED ) { #define SYMBOL1 #define SYMBOL2 std::cout @@ -651,69 +831,12 @@ test_BOOST_IS_DEFINED() //____________________________________________________________________________// -void -test_BOOST_BITWISE_EQUAL() -{ -#undef TEST_CASE_NAME -#define TEST_CASE_NAME << '\"' << "test_BOOST_BITWISE_EQUAL" << '\"' << - - CHECK_TOOL_USAGE( - BOOST_BITWISE_EQUAL( 0x16, 0x16 ), - output.is_empty() - ); - - CHECK_TOOL_USAGE( - BOOST_BITWISE_EQUAL( (char)0x06, (char)0x16 ), - output.is_equal( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test (char)0x06 =.= (char)0x16 in the position 4 failed\n", 2 ) ) - ); - - CHECK_TOOL_USAGE( - BOOST_BITWISE_EQUAL( (char)0x26, (char)0x04 ), - output.is_equal( - std::string( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test (char)0x26 =.= (char)0x04 in the position 1 failed\n", 4 ) ) - .append( CHECK_PATTERN( "error in " TEST_CASE_NAME ": test (char)0x26 =.= (char)0x04 in the position 5 failed\n", 4 ) ) ) - ); -} - -//____________________________________________________________________________// - - -test_suite* -init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) -{ - test_suite* test = BOOST_TEST_SUITE("Test Tools test"); - - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_REQUIRE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_MESSAGE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_WARN ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECKPOINT ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_WARN_MESSAGE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_MESSAGE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_REQUIRE_MESSAGE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_EQUAL ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_ERROR ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_THROW ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_NO_THROW ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_EXCEPTION ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_EQUAL_COLLECTIONS ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_IS_DEFINED ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_CHECK_PREDICATE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_REQUIRE_PREDICATE ) ); - test->add( BOOST_TEST_CASE( &test_BOOST_BITWISE_EQUAL ) ); - - return test; -} - -//____________________________________________________________________________// - // *************************************************************************** // Revision History : -// +// // $Log$ -// Revision 1.36 2005/01/23 10:13:22 vawjr -// Changed - \r\r\n to \r\n in the windows flavors of the files -// VC++ 8.0 complains and won't compile them +// Revision 1.37 2005/01/30 03:35:55 rogeeff +// no message // // Revision 1.35 2005/01/18 08:30:09 rogeeff // unit_test_log rework: @@ -722,34 +845,6 @@ init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) // straitend interface between log and formatters // change compiler like formatter name // minimized unit_test_log interface and reworked to use explicit calls -// -// Revision 1.34 2004/10/05 01:46:33 rogeeff -// borland fix -// -// Revision 1.33 2004/10/01 10:55:43 rogeeff -// some test errors workarrounds -// -// Revision 1.32 2004/06/07 07:34:23 rogeeff -// detail namespace renamed -// -// Revision 1.31 2004/05/27 06:30:48 rogeeff -// no message -// -// Revision 1.30 2004/05/21 06:26:11 rogeeff -// licence update -// -// Revision 1.29 2004/05/11 11:05:06 rogeeff -// basic_cstring introduced and used everywhere -// class properties reworked -// namespace names shortened -// -// Revision 1.28 2003/12/23 13:23:35 johnmaddock -// Added patch for gcc2.95.3 (and no new iostreams). -// -// Revision 1.27 2003/12/01 00:42:38 rogeeff -// prerelease cleaning -// - // *************************************************************************** // EOF diff --git a/test/token_iterator_test.cpp b/test/token_iterator_test.cpp index 67d8f70a..a86bd0f9 100644 --- a/test/token_iterator_test.cpp +++ b/test/token_iterator_test.cpp @@ -15,11 +15,13 @@ // Boost.Test #include -#include -#include - +#include namespace utf = boost::unit_test; +// BOOST +#include + +// STL #include #include #include @@ -37,7 +39,7 @@ void test_default_delim_policy() utf::string_token_iterator tit( "This is\n, a \ttest" ); char const* res[] = { "This", "is", ",", "a", "test" }; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res, res + sizeof(res)/sizeof(char const*) ); } //____________________________________________________________________________// @@ -47,7 +49,7 @@ void test_wide() utf::wstring_token_iterator tit( L"\317\356\367\345\354\363 \341\373 \350 \355\345\362" ); wchar_t const* res[4] = { L"\317\356\367\345\354\363", L"\341\373", L"\350", L"\355\345\362" }; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, wsti_end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, wsti_end, res, res + sizeof(res)/sizeof(char const*) ); } //____________________________________________________________________________// @@ -57,7 +59,7 @@ void test_custom_drop_delim() utf::string_token_iterator tit( "My:-:\t: :string, :", utf::dropped_delimeters = ":" ); char const* res[] = { "My", "-", "\t", " ", "string", ",", " " }; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res, res + sizeof(res)/sizeof(char const*) ); } //____________________________________________________________________________// @@ -67,7 +69,7 @@ void test_custom_keep_delim() utf::string_token_iterator tit( "abc = \t\t 123, int", utf::kept_delimeters = "=," ); char const* res[] = { "abc", "=", "123", ",", "int" }; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res, res + sizeof(res)/sizeof(char const*) ); } //____________________________________________________________________________// @@ -80,7 +82,7 @@ void test_keep_empty_tokens() utf::keep_empty_tokens ); char const* res[] = { "fld", "", "", "456", "a", "=", "4", "" }; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, sti_end, res, res + sizeof(res)/sizeof(char const*) ); } //____________________________________________________________________________// @@ -100,7 +102,7 @@ void test_custom_compare() char const* res[] = { "093514", "120104" }; my_token_iterator end; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, end, res, res + sizeof(res)/sizeof(char const*) ); } //____________________________________________________________________________// @@ -118,7 +120,7 @@ void test_range_token_iterator() char const* res[] = { "a", "bc", ",", "cd" }; my_token_iterator end; - BOOST_CHECK_EQUAL_COLLECTIONS( tit, end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( tit, end, res, res + sizeof(res)/sizeof(char const*) ); #endif } @@ -146,7 +148,7 @@ void moo( Iter b ) char const* res[] = { "ABC", "SDF", " ", "SD", "FG", " " }; Iter end; - BOOST_CHECK_EQUAL_COLLECTIONS( b, end, res ); + BOOST_CHECK_EQUAL_COLLECTIONS( b, end, res, res+sizeof(res)/sizeof(char const*) ); } template @@ -193,6 +195,9 @@ init_unit_test_suite( int argc, char* argv[] ) // History : // // $Log$ +// Revision 1.7 2005/01/30 03:35:55 rogeeff +// no message +// // Revision 1.6 2004/11/28 04:28:59 agurtovoy // merge RC_1_32_0 fixes //