On Mon, Jan 9, 2012 at 7:21 PM, Brad Tilley <kj4eit@gmail.com> wrote:
Hey everyone,

I can make BOOST_CHECK produce a failure message like this:

 BOOST_AUTO_TEST_CASE( test_case2 )
 {
            BOOST_CHECK( 1+1 == 3 );
 }

But when I try BOOST_WARN, all tests pass:

 BOOST_AUTO_TEST_CASE( test_case3 )
 {
            BOOST_WARN( 1+1 == 3 );
 }

Running 3 test cases...

*** No errors detected


Perhaps I'm doing something wrong. Can someone point me in the right
direction? Both BOOST_REQUIRE and BOOST_CHECK work OK. It's only
BOOST_WARN that does not work for my testing.


Please take a look to the link below regarding testing tools and their relation to the error counter and test execution:
http://www.boost.org/doc/libs/1_46_1/libs/test/doc/html/utf/testing-tools.html

With Kind Regards,
Ovanes