|
Boost Users : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-03-21 13:20:59
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Gennadiy Rozental
>
> > How can I make expect an exception?
>
> Use BOOST_CHECK_THROW, BOOST_CHECK_EXCEPTION. If you want
> behavior similar
> to the "expected failures" feature it can't be done. Uncaught
> C++ exception
> is considered a fatal test case failure and can't be hidden
> (since the rest
> of the test case is skipped and we don't know how many
> failures actually
> occurs.
Ah, thanks Gennadiy, that works awesome.
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