Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Test] BOOST_FAIL vs BOOST_ERROR
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-05-08 04:04:14


Greg Christopher <gchristopher <at> vmware.com> writes:

> For instance, a reporting entry point that says "this is an
> exceptional condition and not the detection of a software bug".

Condition of what then?
 
> I think that _both_ BOOST_FAIL (or BOOST_REQUIRE) and BOOST_ERROR
> (or BOOST_CHECK) do indicate that there is a software under test
> failure (bug

They can indicate whatever you want it to indicate. If you require some
particular condition before proceeding with test you check for it using
BOOST_REQUIRE on top of the test case. You can also use fixtures.

> properly detected by testware). I'd like to hear I'm wrong or that
> there is another way to signal a testware failure.
>
> I suppose that I can use fixture support to attempt to notice any
> exceptional problems during setup so that I don't even get to the
> test execution code when there is an exceptional condition or
> environment problem. However, I'd like to try to wrap my head around
> the capabilities of the system and understand them as best as I can
> before proceeding.

Please let me know if understood your problem.

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