Boost logo

Boost Users :

From: Ô¬Ïþ»Ô (farproc_at_[hidden])
Date: 2006-07-30 04:58:10


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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net