|
Boost Users : |
From: Christoph Duelli (duelli_at_[hidden])
Date: 2008-04-03 03:06:15
The following (see below) test programm compiles under both 1.34.1 and
1.35.0; if linked against 1.35.0 it produces the following error message:
Running 1 test case...
A
unknown location(0): fatal error in "test_call_system": child has exited;
pid: 1000; uid: 16129; exit value: 0
*** 1 failure detected in test suite "Master Test Suite"
With 1.34.1, no errors are found:
Running 1 test case...
A
*** No errors detected
Test program:
#define BOOST_AUTO_TEST_MAIN "test-bug"
#include <boost/test/auto_unit_test.hpp>
BOOST_AUTO_TEST_CASE(test_call_system)
{
system("echo A");
}
Yes, that's it! A single and simple system()-call.
(I use these to setup/teardown my test environment; i.e. I create and remove
a directory here, really. If there is a better way to do that: hints
welcome!)
Compiled with gcc 4.1.2 (SLES Linux 10),
g++ -I/3rdparty/boost_1_34_1/include/boost-1_34_1 \
-L/3rdparty/boost_1_34_1/lib \
-lboost_unit_test_framework-gcc41 \
-DBOOST_TEST_DYN_LINK \
test.cpp
Best regards
Christoph
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