diff --git a/src/compiler_log_formatter.cpp b/src/compiler_log_formatter.cpp index 1f5af232..2ee26d46 100644 --- a/src/compiler_log_formatter.cpp +++ b/src/compiler_log_formatter.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:39 rogeeff +// no message +// // Revision 1.1 2005/02/01 09:01:00 rogeeff // supplied_log_formatters split // change formatters interface to simplify result interface diff --git a/src/cpp_main.cpp b/src/cpp_main.cpp index 92c4b93f..dc7bc206 100644 --- a/src/cpp_main.cpp +++ b/src/cpp_main.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.17 2005/03/22 07:18:39 rogeeff +// no message +// // Revision 1.16 2005/01/22 19:26:35 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/execution_monitor.cpp b/src/execution_monitor.cpp index ccb4aa9e..f8180bfe 100644 --- a/src/execution_monitor.cpp +++ b/src/execution_monitor.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.38 2005/03/22 07:18:39 rogeeff +// no message +// // Revision 1.37 2005/01/22 19:26:36 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/framework.cpp b/src/framework.cpp index c18b1973..7e444ccd 100644 --- a/src/framework.cpp +++ b/src/framework.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:49 rogeeff +// no message +// // Revision 1.1 2005/02/20 08:28:34 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // diff --git a/src/plain_report_formatter.cpp b/src/plain_report_formatter.cpp index bbf6c700..35e09bc9 100644 --- a/src/plain_report_formatter.cpp +++ b/src/plain_report_formatter.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:49 rogeeff +// no message +// // Revision 1.1 2005/02/20 08:28:34 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // diff --git a/src/progress_monitor.cpp b/src/progress_monitor.cpp index d5600ffa..c28c9237 100644 --- a/src/progress_monitor.cpp +++ b/src/progress_monitor.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:49 rogeeff +// no message +// // Revision 1.1 2005/02/20 08:28:34 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // diff --git a/src/results_collector.cpp b/src/results_collector.cpp index 9396b25b..c05f5c47 100644 --- a/src/results_collector.cpp +++ b/src/results_collector.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.1 2005/02/20 08:28:34 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // diff --git a/src/results_reporter.cpp b/src/results_reporter.cpp index b013cb15..735d2918 100644 --- a/src/results_reporter.cpp +++ b/src/results_reporter.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.1 2005/02/20 08:28:34 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // diff --git a/src/test_main.cpp b/src/test_main.cpp index 399163b5..ad83d82c 100644 --- a/src/test_main.cpp +++ b/src/test_main.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.22 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.21 2005/01/22 19:26:37 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/test_tools.cpp b/src/test_tools.cpp index cbd416d7..97878ba8 100644 --- a/src/test_tools.cpp +++ b/src/test_tools.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.45 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.44 2005/01/22 19:26:37 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/unit_test_log.cpp b/src/unit_test_log.cpp index e3507b8f..6131b578 100644 --- a/src/unit_test_log.cpp +++ b/src/unit_test_log.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.29 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.28 2005/01/22 19:26:37 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/unit_test_main.cpp b/src/unit_test_main.cpp index 41bcb267..dc177f4b 100644 --- a/src/unit_test_main.cpp +++ b/src/unit_test_main.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.20 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.19 2005/01/22 19:26:37 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/unit_test_monitor.cpp b/src/unit_test_monitor.cpp index 05fa9b17..84067c3b 100644 --- a/src/unit_test_monitor.cpp +++ b/src/unit_test_monitor.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.19 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.18 2005/01/22 19:26:37 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/unit_test_parameters.cpp b/src/unit_test_parameters.cpp index 0c4de87d..bb267194 100644 --- a/src/unit_test_parameters.cpp +++ b/src/unit_test_parameters.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.17 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.16 2005/01/22 19:26:37 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/unit_test_suite.cpp b/src/unit_test_suite.cpp index e83ba292..69f89c4a 100644 --- a/src/unit_test_suite.cpp +++ b/src/unit_test_suite.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.21 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.20 2005/01/22 19:26:38 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // diff --git a/src/xml_log_formatter.cpp b/src/xml_log_formatter.cpp index e876d179..26a42cfb 100644 --- a/src/xml_log_formatter.cpp +++ b/src/xml_log_formatter.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.1 2005/02/01 09:01:00 rogeeff // supplied_log_formatters split // change formatters interface to simplify result interface diff --git a/src/xml_report_formatter.cpp b/src/xml_report_formatter.cpp index 2ddb4314..772133fd 100644 --- a/src/xml_report_formatter.cpp +++ b/src/xml_report_formatter.cpp @@ -12,12 +12,16 @@ // Description : forwarding source // *************************************************************************** +#define BOOST_TEST_SOURCE #include // *************************************************************************** // Revision History : // // $Log$ +// Revision 1.2 2005/03/22 07:18:50 rogeeff +// no message +// // Revision 1.1 2005/02/20 08:28:34 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // diff --git a/test/Jamfile b/test/Jamfile index dd832076..9d548078 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -67,4 +67,5 @@ test-suite "unit_test_framework_test" [ 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 ] + [ test-btl-lib run : boost_check_equal_str : boost_test_exec_monitor ] ; diff --git a/test/boost_check_equal_str.cpp b/test/boost_check_equal_str.cpp new file mode 100644 index 00000000..d4c8c508 --- /dev/null +++ b/test/boost_check_equal_str.cpp @@ -0,0 +1,44 @@ +#include + +int test_main( int, char *[] ) +{ + char const* buf_ptr_cch = "abc"; + char const buf_array_cch[] = "abc"; + char* buf_ptr_ch = "abc"; + char buf_array_ch[] = "abc"; + std::string buf_str = "abc"; + + BOOST_CHECK_EQUAL(buf_ptr_cch, buf_ptr_cch); + BOOST_CHECK_EQUAL(buf_ptr_cch, buf_array_cch); + BOOST_CHECK_EQUAL(buf_ptr_cch, buf_ptr_ch); + BOOST_CHECK_EQUAL(buf_ptr_cch, buf_array_ch); + BOOST_CHECK_EQUAL(buf_ptr_cch, buf_str); + + BOOST_CHECK_EQUAL(buf_array_cch, buf_ptr_cch); + BOOST_CHECK_EQUAL(buf_array_cch, buf_array_cch); + BOOST_CHECK_EQUAL(buf_array_cch, buf_ptr_ch); + BOOST_CHECK_EQUAL(buf_array_cch, buf_array_ch); + BOOST_CHECK_EQUAL(buf_array_cch, buf_str); + + BOOST_CHECK_EQUAL(buf_ptr_ch, buf_ptr_cch); + BOOST_CHECK_EQUAL(buf_ptr_ch, buf_array_cch); + BOOST_CHECK_EQUAL(buf_ptr_ch, buf_ptr_ch); + BOOST_CHECK_EQUAL(buf_ptr_ch, buf_array_ch); + BOOST_CHECK_EQUAL(buf_ptr_ch, buf_str); + + BOOST_CHECK_EQUAL(buf_array_ch, buf_ptr_cch); + BOOST_CHECK_EQUAL(buf_array_ch, buf_array_cch); + BOOST_CHECK_EQUAL(buf_array_ch, buf_ptr_ch); + BOOST_CHECK_EQUAL(buf_array_ch, buf_array_ch); + BOOST_CHECK_EQUAL(buf_array_ch, buf_str); + + BOOST_CHECK_EQUAL(buf_str, buf_ptr_cch); + BOOST_CHECK_EQUAL(buf_str, buf_array_cch); + BOOST_CHECK_EQUAL(buf_str, buf_ptr_ch); + BOOST_CHECK_EQUAL(buf_str, buf_array_ch); + BOOST_CHECK_EQUAL(buf_str, buf_str); + + return 0; +} + +// EOF diff --git a/test/errors_handling_test.cpp b/test/errors_handling_test.cpp index 8e2d3f03..4e65161f 100644 --- a/test/errors_handling_test.cpp +++ b/test/errors_handling_test.cpp @@ -145,7 +145,7 @@ test_main( int argc, char * argv[] ) { #define PATTERN_FILE_NAME "errors_handling_test.pattern" std::string pattern_file_name( - argc == 1 ? (runtime_config::save_pattern() ? PATTERN_FILE_NAME : "./test_files/" PATTERN_FILE_NAME ) + argc <= 1 ? (runtime_config::save_pattern() ? PATTERN_FILE_NAME : "./test_files/" PATTERN_FILE_NAME ) : argv[1] ); #ifdef __GNUC__ @@ -193,6 +193,9 @@ test_main( int argc, char * argv[] ) // Revision History : // // $Log$ +// Revision 1.31 2005/03/22 07:14:44 rogeeff +// no message +// // Revision 1.30 2005/02/23 06:36:01 vawjr // Deleted - extraneous \r characters in the file // diff --git a/test/ifstream_line_iterator_test.cpp b/test/ifstream_line_iterator_test.cpp index 1aeebffa..14c33ff8 100644 --- a/test/ifstream_line_iterator_test.cpp +++ b/test/ifstream_line_iterator_test.cpp @@ -13,7 +13,8 @@ // ***************************************************************************** // Boost.Test -#include +#define BOOST_AUTO_TEST_MAIN +#include #include @@ -21,9 +22,11 @@ namespace utf = boost::unit_test; //____________________________________________________________________________// -void test_default_delimeter() +BOOST_AUTO_TEST_CASE( test_default_delimeter ) { - utf::ifstream_line_iterator it( "./test_files/ifstream_line_iterator.tst1" ); + utf::ifstream_line_iterator it( utf::auto_unit_test_suite()->argc <= 1 + ? "./test_files/ifstream_line_iterator.tst1" + : utf::auto_unit_test_suite()->argv[1] ); BOOST_CHECK( it != utf::ifstream_line_iterator() ); @@ -44,9 +47,11 @@ void test_default_delimeter() //____________________________________________________________________________// -void test_custom_delimeter() +BOOST_AUTO_TEST_CASE( test_custom_delimeter ) { - utf::ifstream_line_iterator it( "./test_files/ifstream_line_iterator.tst2", '}' ); + utf::ifstream_line_iterator it( utf::auto_unit_test_suite()->argc <= 2 + ? "./test_files/ifstream_line_iterator.tst2" + : utf::auto_unit_test_suite()->argv[2], '}' ); BOOST_CHECK( it != utf::ifstream_line_iterator() ); @@ -63,37 +68,15 @@ void test_custom_delimeter() } -//____________________________________________________________________________// - -utf::test_suite* -init_unit_test_suite( int argc, char* argv[] ) -{ - utf::test_suite* test= BOOST_TEST_SUITE( "ifstream line iterator unit test" ); - - test->add( BOOST_TEST_CASE( &test_default_delimeter ) ); - test->add( BOOST_TEST_CASE( &test_custom_delimeter ) ); - - return test; -} - //____________________________________________________________________________// // ***************************************************************************** // History : // // $Log$ -// Revision 1.4 2005/01/30 03:35:55 rogeeff +// Revision 1.5 2005/03/22 07:14:44 rogeeff // no message // -// Revision 1.3 2004/06/05 11:04:17 rogeeff -// no message -// -// Revision 1.2 2004/05/27 06:30:48 rogeeff -// no message -// -// Revision 1.1 2004/05/21 06:25:21 rogeeff -// ifstream_line_iterator added -// // ***************************************************************************** // EOF diff --git a/test/test_files/errors_handling_test.pattern b/test/test_files/errors_handling_test.pattern index 75a2967f..7eba770f 100644 --- a/test/test_files/errors_handling_test.pattern +++ b/test/test_files/errors_handling_test.pattern @@ -35,7 +35,7 @@ Leaving test case "error_on_demand" log level: log_successful_tests; error type: cpp exception; Entering test case "error_on_demand" -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error 198: info: check 'Test case has less failures then expected' passed Leaving test case "error_on_demand" @@ -44,7 +44,7 @@ Leaving test case "error_on_demand" log level: log_successful_tests; error type: system error; Entering test case "error_on_demand" -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero 198: info: check 'Test case has less failures then expected' passed Leaving test case "error_on_demand" @@ -61,7 +61,7 @@ Leaving test case "error_on_demand" log level: log_successful_tests; error type: system fatal error; Entering test case "error_on_demand" -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address Test is aborted 198: info: check 'Test case has less failures then expected' passed @@ -98,7 +98,7 @@ Leaving test case "error_on_demand" log level: log_test_suites; error type: cpp exception; Entering test case "error_on_demand" -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error Leaving test case "error_on_demand" @@ -106,7 +106,7 @@ Leaving test case "error_on_demand" log level: log_test_suites; error type: system error; Entering test case "error_on_demand" -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero Leaving test case "error_on_demand" @@ -121,7 +121,7 @@ Leaving test case "error_on_demand" log level: log_test_suites; error type: system fatal error; Entering test case "error_on_demand" -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address Test is aborted Leaving test case "error_on_demand" @@ -148,13 +148,13 @@ log level: log_messages; error type: user non-fatal error; =========================== log level: log_messages; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== log level: log_messages; error type: system error; -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero =========================== @@ -165,7 +165,7 @@ log level: log_messages; error type: user fatal error; =========================== log level: log_messages; error type: system fatal error; -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address Test is aborted @@ -190,13 +190,13 @@ log level: log_warnings; error type: user non-fatal error; =========================== log level: log_warnings; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== log level: log_warnings; error type: system error; -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero =========================== @@ -207,7 +207,7 @@ log level: log_warnings; error type: user fatal error; =========================== log level: log_warnings; error type: system fatal error; -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address =========================== @@ -230,13 +230,13 @@ log level: log_all_errors; error type: user non-fatal error; =========================== log level: log_all_errors; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== log level: log_all_errors; error type: system error; -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero =========================== @@ -247,7 +247,7 @@ log level: log_all_errors; error type: user fatal error; =========================== log level: log_all_errors; error type: system fatal error; -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address =========================== @@ -269,13 +269,13 @@ log level: log_cpp_exception_errors; error type: user non-fatal error; =========================== log level: log_cpp_exception_errors; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== log level: log_cpp_exception_errors; error type: system error; -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero =========================== @@ -286,7 +286,7 @@ log level: log_cpp_exception_errors; error type: user fatal error; =========================== log level: log_cpp_exception_errors; error type: system fatal error; -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address =========================== @@ -312,7 +312,7 @@ log level: log_system_errors; error type: cpp exception; =========================== log level: log_system_errors; error type: system error; -Exception in "error_on_demand": integer divide by zero +0: fatal error in "error_on_demand": integer divide by zero 119: last checkpoint: error_on_demand() divide by zero =========================== @@ -323,7 +323,7 @@ log level: log_system_errors; error type: user fatal error; =========================== log level: log_system_errors; error type: system fatal error; -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address =========================== @@ -358,7 +358,7 @@ log level: log_fatal_errors; error type: user fatal error; =========================== log level: log_fatal_errors; error type: system fatal error; -Exception in "error_on_demand": memory access violation +0: fatal error in "error_on_demand": memory access violation 124: last checkpoint: write to an invalid address =========================== @@ -392,35 +392,3 @@ log level: log_nothing; error type: user fatal error; =========================== log level: log_nothing; error type: system fatal error; - -=========================== -log level: no error; error type: no error; - - -=========================== -log level: no error; error type: user message; - - -=========================== -log level: no error; error type: user warning; - - -=========================== -log level: no error; error type: user non-fatal error; - - -=========================== -log level: no error; error type: cpp exception; - - -=========================== -log level: no error; error type: system error; - - -=========================== -log level: no error; error type: user fatal error; - - -=========================== -log level: no error; error type: system fatal error; - diff --git a/test/test_files/errors_handling_test.pattern2 b/test/test_files/errors_handling_test.pattern2 index e022c5b7..b9af51ab 100755 --- a/test/test_files/errors_handling_test.pattern2 +++ b/test/test_files/errors_handling_test.pattern2 @@ -35,7 +35,7 @@ Leaving test case "error_on_demand" log level: log_successful_tests; error type: cpp exception; Entering test case "error_on_demand" -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error 198: info: check 'Test case has less failures then expected' passed Leaving test case "error_on_demand" @@ -79,7 +79,7 @@ Leaving test case "error_on_demand" log level: log_test_suites; error type: cpp exception; Entering test case "error_on_demand" -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error Leaving test case "error_on_demand" @@ -112,7 +112,7 @@ log level: log_messages; error type: user non-fatal error; =========================== log level: log_messages; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -141,7 +141,7 @@ log level: log_warnings; error type: user non-fatal error; =========================== log level: log_warnings; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -169,7 +169,7 @@ log level: log_all_errors; error type: user non-fatal error; =========================== log level: log_all_errors; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -196,7 +196,7 @@ log level: log_cpp_exception_errors; error type: user non-fatal error; =========================== log level: log_cpp_exception_errors; error type: cpp exception; -Exception in "error_on_demand": std::runtime_error: test std::runtime error what() message +0: fatal error in "error_on_demand": std::runtime_error: test std::runtime error what() message 114: last checkpoint: error_on_demand() throw runtime_error =========================== @@ -277,5 +277,3 @@ log level: log_nothing; error type: cpp exception; =========================== log level: log_nothing; error type: system error; - -=========================== diff --git a/test/test_files/result_report_test.pattern b/test/test_files/result_report_test.pattern index 66e132d8..ead93da1 100644 --- a/test/test_files/result_report_test.pattern +++ b/test/test_files/result_report_test.pattern @@ -1,171 +1,171 @@ - -*** No errors detected -************************************************************************* - -Test suite "0 test cases inside" passed - -************************************************************************* - -Test suite "0 test cases inside" passed - -************************************************************************* -************************************************************************* -************************************************************************* -************************************************************************* - -*** No errors detected -************************************************************************* - -Test suite "1 test cases inside" passed with: - 1 assertion out of 1 passed - 1 test case out of 1 passed - -************************************************************************* - -Test suite "1 test cases inside" passed with: - 1 assertion out of 1 passed - 1 test case out of 1 passed - - Test case "good_foo" passed with: - 1 assertion out of 1 passed - -************************************************************************* -************************************************************************* -************************************************************************* -************************************************************************* - -*** No errors detected -************************************************************************* - -Test suite "1 bad test cases inside" passed with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - 1 failure expected - 1 test case out of 1 passed - -************************************************************************* - -Test suite "1 bad test cases inside" passed with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - 1 failure expected - 1 test case out of 1 passed - - Test case "bad_foo" passed with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - 1 failure expected - -************************************************************************* -************************************************************************* -************************************************************************* -************************************************************************* - -*** No errors detected -************************************************************************* - -Test suite "2 test cases inside" passed with: - 2 assertions out of 3 passed - 1 assertion out of 3 failed - 1 failure expected - 2 test cases out of 2 passed - -************************************************************************* - -Test suite "2 test cases inside" passed with: - 2 assertions out of 3 passed - 1 assertion out of 3 failed - 1 failure expected - 2 test cases out of 2 passed - - Test case "good_foo" passed with: - 1 assertion out of 1 passed - - Test case "bad_foo" passed with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - 1 failure expected - -************************************************************************* -************************************************************************* -************************************************************************* -************************************************************************* - -*** 2 failures detected in test suite "3 test cases inside" -************************************************************************* - -Test suite "3 test cases inside" failed with: - 2 assertions out of 4 passed - 2 assertions out of 4 failed - 2 test cases out of 3 failed - 1 test case out of 3 skipped - -************************************************************************* - -Test suite "3 test cases inside" failed with: - 2 assertions out of 4 passed - 2 assertions out of 4 failed - 2 test cases out of 3 failed - 1 test case out of 3 skipped - - Test case "bad_foo" failed with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - - Test case "very_bad_foo" aborted with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - - Test case "bad_foo" skipped -************************************************************************* -************************************************************************* -************************************************************************* -************************************************************************* - -*** No errors detected -************************************************************************* - -Test suite "Fake Test Suite Hierarchy" passed with: - 3 assertions out of 4 passed - 1 assertion out of 4 failed - 1 failure expected - 3 test cases out of 6 passed - 3 test cases out of 6 skipped - -************************************************************************* - -Test suite "Fake Test Suite Hierarchy" passed with: - 3 assertions out of 4 passed - 1 assertion out of 4 failed - 1 failure expected - 3 test cases out of 6 passed - 3 test cases out of 6 skipped - - Test suite "0 test cases inside" passed - - Test suite "1 test cases inside" passed with: - 1 assertion out of 1 passed - 1 test case out of 1 passed - - Test case "good_foo" passed with: - 1 assertion out of 1 passed - - Test suite "2 test cases inside" passed with: - 2 assertions out of 3 passed - 1 assertion out of 3 failed - 1 failure expected - 2 test cases out of 2 passed - - Test case "good_foo" passed with: - 1 assertion out of 1 passed - - Test case "bad_foo" passed with: - 1 assertion out of 2 passed - 1 assertion out of 2 failed - 1 failure expected - - Test suite "3 test cases inside" skipped -************************************************************************* -************************************************************************* -************************************************************************* -************************************************************************* + +*** No errors detected +************************************************************************* + +Test suite "0 test cases inside" passed + +************************************************************************* + +Test suite "0 test cases inside" passed + +************************************************************************* +************************************************************************* +************************************************************************* +************************************************************************* + +*** No errors detected +************************************************************************* + +Test suite "1 test cases inside" passed with: + 1 assertion out of 1 passed + 1 test case out of 1 passed + +************************************************************************* + +Test suite "1 test cases inside" passed with: + 1 assertion out of 1 passed + 1 test case out of 1 passed + + Test case "good_foo" passed with: + 1 assertion out of 1 passed + +************************************************************************* +************************************************************************* +************************************************************************* +************************************************************************* + +*** No errors detected +************************************************************************* + +Test suite "1 bad test cases inside" passed with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + 1 failure expected + 1 test case out of 1 passed + +************************************************************************* + +Test suite "1 bad test cases inside" passed with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + 1 failure expected + 1 test case out of 1 passed + + Test case "bad_foo" passed with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + 1 failure expected + +************************************************************************* +************************************************************************* +************************************************************************* +************************************************************************* + +*** No errors detected +************************************************************************* + +Test suite "2 test cases inside" passed with: + 2 assertions out of 3 passed + 1 assertion out of 3 failed + 1 failure expected + 2 test cases out of 2 passed + +************************************************************************* + +Test suite "2 test cases inside" passed with: + 2 assertions out of 3 passed + 1 assertion out of 3 failed + 1 failure expected + 2 test cases out of 2 passed + + Test case "good_foo" passed with: + 1 assertion out of 1 passed + + Test case "bad_foo" passed with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + 1 failure expected + +************************************************************************* +************************************************************************* +************************************************************************* +************************************************************************* + +*** 2 failures detected in test suite "3 test cases inside" +************************************************************************* + +Test suite "3 test cases inside" failed with: + 2 assertions out of 4 passed + 2 assertions out of 4 failed + 2 test cases out of 3 failed + 1 test case out of 3 skipped + +************************************************************************* + +Test suite "3 test cases inside" failed with: + 2 assertions out of 4 passed + 2 assertions out of 4 failed + 2 test cases out of 3 failed + 1 test case out of 3 skipped + + Test case "bad_foo" failed with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + + Test case "very_bad_foo" aborted with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + + Test case "bad_foo" skipped +************************************************************************* +************************************************************************* +************************************************************************* +************************************************************************* + +*** No errors detected +************************************************************************* + +Test suite "Fake Test Suite Hierarchy" passed with: + 3 assertions out of 4 passed + 1 assertion out of 4 failed + 1 failure expected + 3 test cases out of 6 passed + 3 test cases out of 6 skipped + +************************************************************************* + +Test suite "Fake Test Suite Hierarchy" passed with: + 3 assertions out of 4 passed + 1 assertion out of 4 failed + 1 failure expected + 3 test cases out of 6 passed + 3 test cases out of 6 skipped + + Test suite "0 test cases inside" passed + + Test suite "1 test cases inside" passed with: + 1 assertion out of 1 passed + 1 test case out of 1 passed + + Test case "good_foo" passed with: + 1 assertion out of 1 passed + + Test suite "2 test cases inside" passed with: + 2 assertions out of 3 passed + 1 assertion out of 3 failed + 1 failure expected + 2 test cases out of 2 passed + + Test case "good_foo" passed with: + 1 assertion out of 1 passed + + Test case "bad_foo" passed with: + 1 assertion out of 2 passed + 1 assertion out of 2 failed + 1 failure expected + + Test suite "3 test cases inside" skipped +************************************************************************* +************************************************************************* +************************************************************************* +************************************************************************* diff --git a/test/test_files/test_fp_comparisons.pattern b/test/test_files/test_fp_comparisons.pattern index 71681555..f1031830 100644 --- a/test/test_files/test_fp_comparisons.pattern +++ b/test/test_files/test_fp_comparisons.pattern @@ -1,30 +1,30 @@ -117: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-020} exceeds 1e-005% -118: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-030} exceeds 1e-005% -119: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{-1e-010} exceeds 0.1% -120: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{0.123457} exceeds 0.0001% -124: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{-0.123457} exceeds 0.001% -128: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.23456e-010} and fp2{1.23457e-011} exceeds 0.001% -129: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.111e-010} and fp2{1.112e-010} exceeds 0.08999% -130: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.112e-010} and fp2{1.111e-010} exceeds 0.08999% -135: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1} and fp2{1.0002} exceeds 0.011% -117: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-020} exceeds 1e-005% -118: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-030} exceeds 1e-005% -119: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{-1e-010} exceeds 0.1% -120: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{0.123457} exceeds 0.0001% -124: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{-0.123457} exceeds 0.001% -128: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.23456e-010} and fp2{1.23457e-011} exceeds 0.001% -129: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.111e-010} and fp2{1.112e-010} exceeds 0.08999% -130: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.112e-010} and fp2{1.111e-010} exceeds 0.08999% -135: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1} and fp2{1.0002} exceeds 0.011% -117: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-020} exceeds 1e-005% -118: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-030} exceeds 1e-005% -119: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{-1e-010} exceeds 0.1% -120: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{0.123457} exceeds 0.0001% -124: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{-0.123457} exceeds 0.001% -128: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.23456e-010} and fp2{1.23457e-011} exceeds 0.001% -129: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.111e-010} and fp2{1.112e-010} exceeds 0.08999% -130: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.112e-010} and fp2{1.111e-010} exceeds 0.08999% -135: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1} and fp2{1.0002} exceeds 0.011% -169: error in "test_CHECK_SMALL": absolute value of 1e-6{1e-006} exceeds 1e-007 -184: error in "test_close_at_tolerance": difference between fp1{1} and fp2{1} exceeds 1e-006% -191: error in "test_close_at_tolerance": check close_at_tolerance( epsilon )( fp1, fp2 ) failed for ( 1.23456e-010, 1.23457e-010 ) +117: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-020} exceeds 1e-005% +118: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-030} exceeds 1e-005% +119: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{-1e-010} exceeds 0.1% +120: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{0.123457} exceeds 0.0001% +124: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{-0.123457} exceeds 0.001% +128: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.23456e-010} and fp2{1.23457e-011} exceeds 0.001% +129: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.111e-010} and fp2{1.112e-010} exceeds 0.08999% +130: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.112e-010} and fp2{1.111e-010} exceeds 0.08999% +135: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1} and fp2{1.0002} exceeds 0.011% +117: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-020} exceeds 1e-005% +118: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-030} exceeds 1e-005% +119: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{-1e-010} exceeds 0.1% +120: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{0.123457} exceeds 0.0001% +124: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{-0.123457} exceeds 0.001% +128: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.23456e-010} and fp2{1.23457e-011} exceeds 0.001% +129: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.111e-010} and fp2{1.112e-010} exceeds 0.08999% +130: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.112e-010} and fp2{1.111e-010} exceeds 0.08999% +135: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1} and fp2{1.0002} exceeds 0.011% +117: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-020} exceeds 1e-005% +118: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{1e-030} exceeds 1e-005% +119: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0} and fp2{-1e-010} exceeds 0.1% +120: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{0.123457} exceeds 0.0001% +124: error in "test_BOOST_CHECK_CLOSE": difference between fp1{0.123456} and fp2{-0.123457} exceeds 0.001% +128: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.23456e-010} and fp2{1.23457e-011} exceeds 0.001% +129: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.111e-010} and fp2{1.112e-010} exceeds 0.08999% +130: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1.112e-010} and fp2{1.111e-010} exceeds 0.08999% +135: error in "test_BOOST_CHECK_CLOSE": difference between fp1{1} and fp2{1.0002} exceeds 0.011% +169: error in "test_CHECK_SMALL": absolute value of 1e-6{1e-006} exceeds 1e-007 +184: error in "test_close_at_tolerance": difference between fp1{1.00000001} and fp2{1.00000002} exceeds 1e-006% +191: error in "test_close_at_tolerance": check close_at_tolerance( epsilon )( fp1, fp2 ) failed for ( 1.23456e-010, 1.23457e-010 ) diff --git a/test/test_files/test_tools_test.pattern b/test/test_files/test_tools_test.pattern index 50caa975..a5a7dba9 100644 --- a/test/test_files/test_tools_test.pattern +++ b/test/test_files/test_tools_test.pattern @@ -1,61 +1,61 @@ -129: warning in "test_BOOST_WARN": condition sizeof(int) == sizeof(short) is not satisfied -132: info: check sizeof(unsigned char) == sizeof(char) passed -146: error in "test_BOOST_CHECK": check false failed -147: error in "test_BOOST_CHECK": check 1==2 failed -148: error in "test_BOOST_CHECK": check i==1 failed -151: info: check i==2 passed -158: error in "test_BOOST_REQUIRE": not aborted -160: fatal error in "test_BOOST_REQUIRE": critical test false failed -164: fatal error in "test_BOOST_REQUIRE": critical test j > 5 failed -167: info: check j < 5 passed -167: error in "test_BOOST_REQUIRE": not aborted -181: info: check 'object size 33 is too small' passed -198: error in "test_BOOST_CHECK_MESSAGE": Well, may be that what I belive in -200: error in "test_BOOST_CHECK_MESSAGE": Checking predicate failed. Some explanation -203: info: check 'Could it fail?' passed -210: fatal error in "test_BOOST_REQUIRE_MESSAGE": Here we should stop -213: info: check 'That's OK' passed -213: error in "test_BOOST_REQUIRE_MESSAGE": not aborted -220: error in "test_BOOST_ERROR": Fail to miss an error -227: fatal error in "test_BOOST_FAIL": No! No! Show must go on. -243: error in "test_BOOST_CHECK_THROW": exception my_exception is expected -246: warning in "test_BOOST_CHECK_THROW": exception my_exception is expected -249: fatal error in "test_BOOST_CHECK_THROW": exception my_exception is expected -252: info: check 'exception my_exception is caught' passed -259: error in "test_BOOST_CHECK_EXCEPTION": incorrect exception my_exception is caught -262: info: check 'incorrect exception my_exception is caught' passed -272: error in "test_BOOST_CHECK_NO_THROW": exception thrown by throw my_exception() -318: error in "test_BOOST_CHECK_EQUAL": check i == j failed [1 != 2] -324: error in "test_BOOST_CHECK_EQUAL": check str1 == str2 failed [test1 != test12] -327: error in "test_BOOST_CHECK_EQUAL": check i+1 == j failed [4 != 2] -330: info: check str1 == str3+1 passed -339: fatal error in "test_BOOST_CHECK_EQUAL": critical test str1 == str2 failed [test != null string] -345: warning in "test_BOOST_CHECK_EQUAL": condition b1 == b2 is not satisfied [B(1) != B(2)] -351: error in "test_BOOST_CHECK_EQUAL": check c1 == c3 failed [C(0,100) != C(1,102)]. Index mismatch -352: error in "test_BOOST_CHECK_EQUAL": check c1 == c2 failed [C(0,100) != C(0,101)]. Id mismatch -382: error in "test_BOOST_CHECK_PREDICATE": check is_even( i ) failed for ( 17 ) -385: error in "test_BOOST_CHECK_PREDICATE": check not_equal_to()( i, 17 ) failed for ( 17, 17 ) -391: warning in "test_BOOST_CHECK_PREDICATE": condition moo( 12, i, j ) is not satisfied for ( 12, 17, 15 ) -399: error in "test_BOOST_CHECK_PREDICATE": check compare_lists( l1, l2 ) failed for ( , ). Different sizes [2!=0] -410: error in "test_BOOST_REQUIRE_PREDICATE": not aborted -412: fatal error in "test_BOOST_REQUIRE_PREDICATE": critical test less_equal()( arg2, arg1 ) failed for ( 2, 1 ) -433: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+7 } failed. -Mismatch in a position 2: 4 != 3 -Mismatch in a position 5: 7 != 6 -434: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+2 } failed. -Collections size mismatch: 7 != 2 -443: error in "test_BOOST_CHECK_BITWISE_EQUAL": check (char)0x06 =.= (char)0x16 failed. -Mismatch in a position 4 -446: warning in "test_BOOST_CHECK_BITWISE_EQUAL": condition (char)0x26 =.= (char)0x04 is not satisfied. -Mismatch in a position 1 -Mismatch in a position 5 -449: fatal error in "test_BOOST_CHECK_BITWISE_EQUAL": critical test (char)0x26 =.= (int)0x26 failed. -Operands bit sizes mismatch: 8 != 32 -still testing -1+1=2 -2+2=4 -struct A -0x14 - 20 -0: fatal error in "test_BOOST_CHECKPOINT": C string: some error -484: last checkpoint: Going to do a silly things +129: warning in "test_BOOST_WARN": condition sizeof(int) == sizeof(short) is not satisfied +132: info: check sizeof(unsigned char) == sizeof(char) passed +146: error in "test_BOOST_CHECK": check false failed +147: error in "test_BOOST_CHECK": check 1==2 failed +148: error in "test_BOOST_CHECK": check i==1 failed +151: info: check i==2 passed +158: error in "test_BOOST_REQUIRE": not aborted +160: fatal error in "test_BOOST_REQUIRE": critical test false failed +164: fatal error in "test_BOOST_REQUIRE": critical test j > 5 failed +167: info: check j < 5 passed +167: error in "test_BOOST_REQUIRE": not aborted +181: info: check 'object size 33 is too small' passed +198: error in "test_BOOST_CHECK_MESSAGE": Well, may be that what I belive in +200: error in "test_BOOST_CHECK_MESSAGE": Checking predicate failed. Some explanation +203: info: check 'Could it fail?' passed +210: fatal error in "test_BOOST_REQUIRE_MESSAGE": Here we should stop +213: info: check 'That's OK' passed +213: error in "test_BOOST_REQUIRE_MESSAGE": not aborted +220: error in "test_BOOST_ERROR": Fail to miss an error +227: fatal error in "test_BOOST_FAIL": No! No! Show must go on. +243: error in "test_BOOST_CHECK_THROW": exception my_exception is expected +246: warning in "test_BOOST_CHECK_THROW": exception my_exception is expected +249: fatal error in "test_BOOST_CHECK_THROW": exception my_exception is expected +252: info: check 'exception my_exception is caught' passed +259: error in "test_BOOST_CHECK_EXCEPTION": incorrect exception my_exception is caught +262: info: check 'incorrect exception my_exception is caught' passed +272: error in "test_BOOST_CHECK_NO_THROW": exception thrown by throw my_exception() +318: error in "test_BOOST_CHECK_EQUAL": check i == j failed [1 != 2] +324: error in "test_BOOST_CHECK_EQUAL": check str1 == str2 failed [test1 != test12] +327: error in "test_BOOST_CHECK_EQUAL": check i+1 == j failed [4 != 2] +330: info: check str1 == str3+1 passed +339: fatal error in "test_BOOST_CHECK_EQUAL": critical test str1 == str2 failed [test != null string] +345: warning in "test_BOOST_CHECK_EQUAL": condition b1 == b2 is not satisfied [B(1) != B(2)] +351: error in "test_BOOST_CHECK_EQUAL": check c1 == c3 failed [C(0,100) != C(1,102)]. Index mismatch +352: error in "test_BOOST_CHECK_EQUAL": check c1 == c2 failed [C(0,100) != C(0,101)]. Id mismatch +382: error in "test_BOOST_CHECK_PREDICATE": check is_even( i ) failed for ( 17 ) +385: error in "test_BOOST_CHECK_PREDICATE": check not_equal_to()( i, 17 ) failed for ( 17, 17 ) +391: warning in "test_BOOST_CHECK_PREDICATE": condition moo( 12, i, j ) is not satisfied for ( 12, 17, 15 ) +399: error in "test_BOOST_CHECK_PREDICATE": check compare_lists( l1, l2 ) failed for ( , ). Different sizes [2!=0] +410: error in "test_BOOST_REQUIRE_PREDICATE": not aborted +412: fatal error in "test_BOOST_REQUIRE_PREDICATE": critical test less_equal()( arg2, arg1 ) failed for ( 2, 1 ) +433: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+7 } failed. +Mismatch in a position 2: 4 != 3 +Mismatch in a position 5: 7 != 6 +434: error in "test_BOOST_CHECK_EQUAL_COLLECTIONS": check { testlist.begin(), testlist.end() } == { pattern, pattern+2 } failed. +Collections size mismatch: 7 != 2 +443: error in "test_BOOST_CHECK_BITWISE_EQUAL": check (char)0x06 =.= (char)0x16 failed. +Mismatch in a position 4 +446: warning in "test_BOOST_CHECK_BITWISE_EQUAL": condition (char)0x26 =.= (char)0x04 is not satisfied. +Mismatch in a position 1 +Mismatch in a position 5 +449: fatal error in "test_BOOST_CHECK_BITWISE_EQUAL": critical test (char)0x26 =.= (int)0x26 failed. +Operands bit sizes mismatch: 8 != 32 +still testing +1+1=2 +2+2=4 +struct A +0x14 + 20 +0: fatal error in "test_BOOST_CHECKPOINT": C string: some error +484: last checkpoint: Going to do a silly things diff --git a/test/test_fp_comparisons.cpp b/test/test_fp_comparisons.cpp index c3120aca..62e91ec8 100644 --- a/test/test_fp_comparisons.cpp +++ b/test/test_fp_comparisons.cpp @@ -51,10 +51,10 @@ output_test_stream& ots() static boost::shared_ptr inst; if( !inst ) { - inst.reset( new output_test_stream( - runtime_config::save_pattern() ? save_file_name : match_file_name, - !runtime_config::save_pattern() ) - ); + inst.reset( + auto_unit_test_suite()->argc <= 1 + ? new output_test_stream( runtime_config::save_pattern() ? save_file_name : match_file_name, !runtime_config::save_pattern() ) + : new output_test_stream( auto_unit_test_suite()->argv[1], !runtime_config::save_pattern() ) ); } return *inst; @@ -197,6 +197,9 @@ TEST_CASE( test_close_at_tolerance ) // Revision History : // // $Log$ +// Revision 1.19 2005/03/22 07:14:44 rogeeff +// no message +// // Revision 1.18 2005/02/21 10:29:04 rogeeff // no message // diff --git a/test/test_tools_test.cpp b/test/test_tools_test.cpp index ab3c6ce3..ded3a6ee 100644 --- a/test/test_tools_test.cpp +++ b/test/test_tools_test.cpp @@ -76,10 +76,10 @@ output_test_stream& ots() static boost::shared_ptr inst; if( !inst ) { - inst.reset( new output_test_stream( - runtime_config::save_pattern() ? save_file_name : match_file_name, - !runtime_config::save_pattern() ) - ); + inst.reset( + auto_unit_test_suite()->argc <= 1 + ? new output_test_stream( runtime_config::save_pattern() ? save_file_name : match_file_name, !runtime_config::save_pattern() ) + : new output_test_stream( auto_unit_test_suite()->argv[1], !runtime_config::save_pattern() ) ); } return *inst; @@ -510,6 +510,9 @@ TEST_CASE( test_BOOST_IS_DEFINED ) // Revision History : // // $Log$ +// Revision 1.41 2005/03/22 07:14:44 rogeeff +// no message +// // Revision 1.40 2005/02/21 10:29:06 rogeeff // no message //