Subject: [Boost-bugs] [Boost C++ Libraries] #12095: disabling test with precondition leads to error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-24 19:07:08
#12095: disabling test with precondition leads to error
-----------------------------------------------+---------------------
Reporter: Patrick Moran <patrick.a.moran@â¦> | Owner: rogeeff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.60.0 | Severity: Problem
Keywords: test precondition failure |
-----------------------------------------------+---------------------
Minimal reproduction:
{{{#!C++
#define BOOST_TEST_MODULE repro
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(fail,
*boost::unit_test::precondition([](boost::unit_test::test_unit_id){ return
false; })) {}
}}}
Output (1.60.0 from source):
{{{
Running 1 test case...
*** Errors were detected in the test module "repro"; see standard output
for details
}}}
Based on the documentation here:
http://www.boost.org/doc/libs/1_60_0/libs/test/doc/html/boost_test/tests_organization/enabling.html
I assumed that disabling a test with a precondition was not supposed to be
erroneous (the example had two tests fail, and one that did not run
because of a failed precondition. Alltogether, two (not three) errors
were reported. Also, the message indicates that we should look at stdout,
but stdout has nothing.
* It doesn't require the predicate to be a lambda, that was just the
shortest thing I could find for a small repro.
* It doesn't depend on this being the only test case - adding another case
doesn't change the behaviour
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12095> 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:19 UTC