[Boost-bugs] [Boost C++ Libraries] #11478: Boost Test Exception Assert Failure has poor message

Subject: [Boost-bugs] [Boost C++ Libraries] #11478: Boost Test Exception Assert Failure has poor message
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-15 14:24:24


#11478: Boost Test Exception Assert Failure has poor message
-------------------------------------+---------------------
 Reporter: merrill.cornish@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: exception error-message |
-------------------------------------+---------------------
 Here is the Boost Test assertion:

 BOOST_CHECK_EXCEPTION(dummyOpr->setOperand(emptyValue), DiGSE::fail,
 fail_msg);

 Here is the test execution log message:

 info: check 'incorrect exception DiGSE::fail is caught' has passed

 I have only one exception: DiGSE::fail (derived from
 std::exception). It is the /only /exception that appears in the
 BOOST_CHECK_EXCEPTION() assertions. So, what does "incorrect
 exception DiGSE::fail" mean? If DiGSE::fail was caught, then that
 part is correct. If the message means that some other exception was
 caught, then this is a Really Poor way of phrasing that information.

 Or, did the predicate return false (which, in my case, means the
 exception message is wrong)?

 But if the wrong exception was caught or the predicate returned
 false, then why was the assertion declared "has passed"?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11478>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC