Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-04-14 00:38:30


>
> Folks,
>
> I just noticed something: a unit test with something like this
>
> BOOST_CHECK_MESSAGE ( true, "this should never be seen" );
>
> will, of course, be silent when run... unless you've got the logging
> turned all the way up. When run with
>
> --log_level=all --report_level=detailed
>
> this turns up in the output:
>
> ./../util/unitTest/test_auto.C(32): info: this should never be seen
>
> Is this intentional? It is suprising to me... if the message in the
> check says something about "failing" or "errors", the output appears
> to be signaling a unit test failure when really it isn't.

With latest CVS HEAD software the message would look like:

> ./../util/unitTest/test_auto.C(32): info: check 'this should never be
seen' passed

And yes - it is intentional. log_level=all mean that all assertions
including those that passed are logged.

Gennadiy


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