Re: [Boost-bugs] [Boost C++ Libraries] #1723: No subprocess can be started in init_unit_test_suite

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1723: No subprocess can be started in init_unit_test_suite
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-26 10:55:55


#1723: No subprocess can be started in init_unit_test_suite
--------------------------------------+-------------------------------------
  Reporter: jensseidel_at_[hidden] | Owner: rogeeff
      Type: Bugs | Status: closed
 Milestone: Boost 1.36.0 | Component: test
   Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords:
--------------------------------------+-------------------------------------

Comment(by anonymous):

 I'm finding that the patch prevents the error message but doesn't cause
 the code after the system() call (within the BOOST_AUTO_TEST_CASE) to be
 executed.

 For example:

 {{{
 BOOST_AUTO_TEST_CASE(MyTestCase) {
         cerr << "Before command" << endl;
         system("echo Command");
         cerr << "After command" << endl;
         BOOST_CHECK_EQUAL(1, 1);
 }
 }}}

 ...gives output which includes the following...

 {{{
 Entering test case "MyTestCase"
 Before command
 Command
 Test case MyTestCase doesn't include any assertions
 ***************************************************
 Leaving test case "MyTestCase"

 }}}

 This is the case after I have applied the patch and set the environment
 variable BOOST_TEST_CATCH_SYSTEM_ERROR to "no".

 Thanks very much for your help.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1723#comment:4>
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:49:58 UTC