Boost logo

Boost :

Subject: Re: [boost] Regression testing unobservable behavior?
From: Peter Dimov (lists_at_[hidden])
Date: 2014-08-08 09:53:35


Beman Dawes wrote:

> Certain library function errors are difficult to regression test because
> it is not obvious how to observe their behavior in a test framework.
> Examples include:
>
...
> 2) Verification that BOOST_ASSERT fires when a precondition is violated.

You can do this by enabling a custom assert handler and then test that it
has been invoked.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk