2 Jul
2004
2 Jul
'04
8:17 p.m.
On Fri, 2004-07-02 at 12:57, Rozental, Gennadiy wrote:
void validate(X args) { if (some tests) BOOST_ERROR("message"); } BOOST_AUTO_UNIT_TEST(testfunction) { // set up arguments validate(args) } [...] I think the problem is a think-o on my part. In the pseudo-code above, BOOST_ERROR is not executed unless "some tests" is true. So if the tests are OK, BOOST_ERROR is never hit.
I think the report of 0 (boost) tests being run is therefore accurate, though confusing.
It should actually say that 1 test cases being run, but no assertions executed. Yes, that's what it was saying.
So I think everything's good. Thanks.