Boost C++ Libraries: Ticket #11417: BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES should result in a fail verdict if the expectation is not fullfilled https://svn.boost.org/trac10/ticket/11417 <p> Given this test: </p> <pre class="wiki">BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(fail_test, 1) BOOST_AUTO_TEST_CASE( fail_test ) { BOOST_CHECK(1 == 1); } </pre><p> I would assume that this test results in a overall failed test, but the macro only prints a message on the console: "Test case fail_test has fewer failures than expected" and does not touch the verdict of the test. This is IMHO useless, because its easy to miss (Especially if CI is used) </p> <p> I introduced that test case into our test suite to ensure that the tests are working correctly (before we had tests that did nothing and resulted in PASS, because NDEBUG was defined) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11417 Trac 1.4.3 peters@… Wed, 24 Jun 2015 14:27:56 GMT <link>https://svn.boost.org/trac10/ticket/11417#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11417#comment:1</guid> <description> <p> sorry for this double post. please remove this ticket in favour to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11416" title="#11416: Bugs: BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES should result in a fail verdict ... (closed: invalid)">#11416</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Fri, 03 Jul 2015 11:22:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11417#comment:2 https://svn.boost.org/trac10/ticket/11417#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket