Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-09-23 23:45:46

> Using Boost.Test from the boost 1.33 release,
> The reported number of passed assertions for each test case is one greater
> than the actual number of assertions performed by the test case. For
> example, the most trivial of auto-unit-test programs, attached below,
> reports 1 assertion out of 1 passed. I see no test assertions here.
> ----------
> #include <boost/test/unit_test.hpp>
> #include <boost/test/auto_unit_test.hpp>
> BOOST_AUTO_UNIT_TEST(test_no_assertions) {
> }

Actually there is one behind the scene in results collector:
   tr.p_aborted ||
   tr.p_assertions_failed >= tr.p_expected_failures,
"Test case has less failures then expected" );

Essencially I am checking that actual amount of failures isn't less then


Boost list run by bdawes at, gregod at, cpdaniel at, john at