Boost logo

Boost Users :

From: Ross Boylan (ross_at_[hidden])
Date: 2004-07-02 15:17:10


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.


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