Subject: [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-03-27 21:32:57
#1723: No subprocess can be started in init_unit_test_suite
-------------------------------------+--------------------------------------
Reporter: jensseidel_at_[hidden] | Owner: rogeeff
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: test
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
As reported in http://article.gmane.org/gmane.comp.lib.boost.devel/172560
(Boost.Test: "Test setup error: child has exited" error with RC2, Message-
ID: <20080325124954.GB10116_at_[hidden]>):
I got a new error once I try to start my test:
Test setup error: child has exited; pid: 1001; uid: 20576; exit value: 0
The problem seems to be related to a std::system() call, which I do not
understand! Without it it works!
Here is my test code:
#include <cstdlib>
#include <boost/test/included/unit_test_framework.hpp>
using boost::unit_test::test_suite;
void Vektor3Test1() { }
test_suite* Vektor3_test_suite()
{
test_suite *test = BOOST_TEST_SUITE("Vektor3 test suite");
test->add(BOOST_TEST_CASE(&Vektor3Test1));
return test;
}
test_suite* init_unit_test_suite(int, char *[])
{
std::system("true");
// leads to "Test setup error: child has exited; pid: 1001; uid: 30540;
exit value: 0"
test_suite *test = BOOST_TEST_SUITE("Master test suite");
test->add(Vektor3_test_suite());
return test;
}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1723>
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:57 UTC