Subject: Re: [Boost-users] UTF : capturing asserts
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-04-16 17:02:51


Carla Strembicke wrote:
> Hi,
>
>
>
> Just started using the BOOST unit test framework. I have legacy code
> that exercises asserts. This resided on both a linux and windows platform.
>
> Using 1.42 release of boost.
>
>
>
> Is there a method in which to capture assert so as to pass a test ( like
> BOOST_REQUIRE_THROW)?

Can your assert be redefined globally to throw a specific exception that
can then be caught by BOOST_REQUIRE_THROW for purposes of testing?

Jeff