Boost C++ Libraries: Ticket #11478: Boost Test Exception Assert Failure has poor message https://svn.boost.org/trac10/ticket/11478 <p> Here is the Boost Test assertion: </p> <p> BOOST_CHECK_EXCEPTION(dummyOpr-&gt;setOperand(emptyValue), DiGSE::fail, fail_msg); </p> <p> Here is the test execution log message: </p> <p> info: check 'incorrect exception DiGSE::fail is caught' has passed </p> <p> 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. </p> <p> Or, did the predicate return false (which, in my case, means the exception message is wrong)? </p> <p> But if the wrong exception was caught or the predicate returned false, then why was the assertion declared "has passed"? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11478 Trac 1.4.3 Gennadiy Rozental Sat, 18 Jul 2015 07:11:42 GMT <link>https://svn.boost.org/trac10/ticket/11478#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11478#comment:1</guid> <description> <p> All messages on info level look weird. </p> <p> You assertion has passed and Boost.Test just trying to notify you about this passed assertion. Part of the statement inside <em> is just assertion description. </em></p> <p> What message do you see if assertion fails? Does it make sense? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 17 Sep 2015 14:44:23 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/11478#comment:2 https://svn.boost.org/trac10/ticket/11478#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> </ul> Ticket Raffi Enficiaud Thu, 17 Sep 2015 14:50:28 GMT <link>https://svn.boost.org/trac10/ticket/11478#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11478#comment:3</guid> <description> <p> Would you please test revision 4400d54b21533cd070048ffafc1865ce03468d4d (branch tractickets/11478-exception-poor-message). Now logs are printed like this: </p> <pre class="wiki">../doc/examples/exception_check_predicate.run-fail.cpp:26: info: check 'exception \ "my_exception" raised as expected: predicate "is_critical" validation on the raised \ exception' has passed </pre><p> or </p> <pre class="wiki">../doc/examples/exception_api.run-fail.cpp:54: info: check 'exception std::exception \ raised as expected' has passed </pre><p> If you have a better/clearer phrasing, please let me know. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Fri, 18 Sep 2015 08:31:21 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/11478#comment:4 https://svn.boost.org/trac10/ticket/11478#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Raffi Enficiaud Tue, 27 Oct 2015 12:51:18 GMT milestone changed https://svn.boost.org/trac10/ticket/11478#comment:5 https://svn.boost.org/trac10/ticket/11478#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> Ticket Raffi Enficiaud Mon, 02 Nov 2015 10:12:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11478#comment:6 https://svn.boost.org/trac10/ticket/11478#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> merged to master </p> Ticket