Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-06-06 09:21:06


"Kevin Wheatley" <hxpro_at_[hidden]> wrote in message
news:42A44A72.64723862_at_cinesite.co.uk...
> Hi,
>
> I'm looking at using Boost Test as a means to carry out unit tests and
> wondered if there is a guard for assertions like there is for
> exception handling to say, "this test should assert()", fail if it
> does not.

If you mean an ability to intersept assert function call() - no it can't be
done reliably.
If could change implementation of your function callAssert() so it throw an
exception (at least in test/debug mode), then you could use
BOOST_CHECK_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