Boost logo

Boost Users :

From: Marc Oliver Castañeda (floranteatlaura_at_[hidden])
Date: 2008-07-17 22:25:28


Hi, David is right, the issue can be reproduced with the following simple program: #define BOOST_TEST_MODULE example #include <boost/test/included/unit_test.hpp> BOOST_AUTO_TEST_CASE( testA ) { } BOOST_AUTO_TEST_CASE( testB ) { } BOOST_AUTO_TEST_SUITE( s1 ) BOOST_AUTO_TEST_CASE( test1 ) { } BOOST_AUTO_TEST_CASE( lest2 ) { } BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE( s2 ) BOOST_AUTO_TEST_CASE( test1 ) { } BOOST_AUTO_TEST_CASE( test11 ) { } BOOST_AUTO_TEST_SUITE( in ) BOOST_AUTO_TEST_CASE( test ) { } BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END() Compile and link this with the boost unit framework shared library. Run the executable like the following: >example --log_level=test_suite --run_test=testA Output should be.. Running 1 test case... Entering test suite "example" Entering test case "testA" Test case testA doesn't include any assertions Leaving test case "testA" Leaving test suite "example" *** No errors detected However, output is always like the following: Running 7 test cases... Entering test suite "example" Entering test case "testA" Test case testA doesn't include any assertions Leaving test case "testA" Entering test case "testB" Test case testB doesn't include any assertions Leaving test case "testB" Entering test suite "s1" Entering test case "test1" Test case test1 doesn't include any assertions Leaving test case "test1" Entering test case "lest2" Test case lest2 doesn't include any assertions Leaving test case "lest2" Leaving test suite "s1" Entering test suite "s2" Entering test case "test1" Test case test1 doesn't include any assertions Leaving test case "test1" Entering test case "test11" Test case test11 doesn't include any assertions Leaving test case "test11" Entering test suite "in" Entering test case "test" Test case test doesn't include any assertions Leaving test case "test" Leaving test suite "in" Leaving test suite "s2" Leaving test suite "example" *** No errors detected Thanks Marc ----- Original Message ---- From: Gennadiy Rozental <rogeeff_at_[hidden]> To: boost-users_at_[hidden] Sent: Friday, July 18, 2008 1:53:00 AM Subject: Re: [Boost-users] run_test parameter not working (Boost Unit Test Framework) David Abrahams <dave <at> boostpro.com> writes: > > > on Thu Jul 17 2008, Marc Oliver Castañeda <floranteatlaura-AT-yahoo.com> wrote: > > > Hi, > > > > I've downloaded the 1.35.0 source and built my own boost libraries in Redhat 5.1 with > > the intention of using the boost unit test framework. However, I noticed that the run_test > > parameter is not working. > > parameter to what? e.g., a function? a command-line tool? > he mean command line parameter that is used to specify which test units to run based on their name _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net