
30 Jul
2006
30 Jul
'06
2:58 a.m.
The doc says "It(BOOST_CHECK) also increments an error count<http://www.boost.org/libs/test/doc/components/minimal_testing/index.html>", but it seems not: #include <boost/test/included/unit_test_framework.hpp> using boost::unit_test::test_suite; void test1() { BOOST_CHECK(false); } test_suite* init_unit_test_suite( int, char* [] ) { test_suite* test= BOOST_TEST_SUITE( "Unit test ); test->add( BOOST_TEST_CASE( &test1), 1); return test; } Output: ----------------------------------------------------- Running 1 test case... xxx.cpp(171): error in "test1": check false failed *** No errors detected ----------------------------------------------------- ps. I am using boost-1_33_1.