|
Boost Users : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-03-21 04:08:47
"Sohail Somani" <s.somani_at_[hidden]> wrote in message
news:1C1EBEF8DBACDC439D038EA051674EC7786230_at_xbox.financialcad.com...
> Hi,
>
> Does Boost.Test consider an exception as a failure?
In latest version answer is clear yes. In previos there maybe some bugs.
> 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.
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