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
> 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-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at