
5 Mar
2012
5 Mar
'12
4:22 p.m.
On Mon, 5 Mar 2012, Gennadiy Rozental wrote:
Jeremiah Willcock
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.
Does that mean needing to change all of the tests to use that? Also, what about doing that in a program that throws (and catches) other exceptions not related to test failures? -- Jeremiah Willcock