[Boost-bugs] [Boost C++ Libraries] #13149: Dependency decorators on parent suites

Subject: [Boost-bugs] [Boost C++ Libraries] #13149: Dependency decorators on parent suites
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-08-06 11:08:30


#13149: Dependency decorators on parent suites
----------------------------------------+-------------------------------
 Reporter: namezero@… | Owner: Gennadiy Rozental
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.64.0 | Severity: Problem
 Keywords: boost unit test dependency |
----------------------------------------+-------------------------------
 Dependency decorators on parent suites are not honored when a nested test
 selected to run via command line

 Given the following code:

 {{{

 #define BOOST_TEST_DYN_LINK
 #define BOOST_TEST_MODULE my_tests
 #include <boost/test/unit_test.hpp>

 BOOST_AUTO_TEST_SUITE(suite1, *boost::unit_test::depends_on("suite2"))

         BOOST_AUTO_TEST_SUITE(suite1_nested)

         BOOST_AUTO_TEST_CASE(suite1_test1)
         {
             BOOST_CHECK(true);
         }

         BOOST_AUTO_TEST_SUITE_END()

 BOOST_AUTO_TEST_SUITE_END()

 BOOST_AUTO_TEST_SUITE(suite2)

     BOOST_AUTO_TEST_CASE(suite2_test2)
     {
         BOOST_CHECK(true);
     }

 BOOST_AUTO_TEST_SUITE_END()

 }}}

 And running with the following command line:

 ./test.o --log_level=all --run_test=suite1/suite1_nested

 The output is as follows:

 ----
 Running 1 test case...

 Entering test module "my_tests"

 main.cpp(7): Test suite "suite1" is skipped because dependency test suite
 "suite2" is disabled

 Leaving test module "my_tests"; testing time: 24us

 *** Errors were detected in the test module "my_tests"; see standard
 output for details
 ----

 **Expected:** The parent's suite (suite1) dependency is honored, and the
 tests are run.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13149>
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-08-06 11:11:47 UTC