Boost logo

Boost Users :

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


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

> BOOST_REQUIRE won't work in the setup step because it does
> exactly what I want to avoid :) Thanks, I will throw a c++
> exception.

Actually C++ exception will lead to the same result - test case being marked as
failed.

If I understand what you need correctly, you need to throw
boost::execution_aborted(). This exception is treated specially by execution
monitor and no error is reported.

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