Boost logo

Boost Users :

Subject: Re: [Boost-users] Aborting on Boost.Test check failure
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2012-03-05 11:07:23


Jeremiah Willcock <jewillco <at> osl.iu.edu> writes:

>
> Is there a way to force an abort() or some other kind of
> debugger-catchable event when a Boost.Test test case (such as a
> BOOST_CHECK) fails? Is there a function I can set a breakpoint on? I do
> not see anything like that in the documentation. I am running on Linux
> with gdb.
>

You can switch to BOOST_REQUIRE and catch throw.

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