BOOST_FIXTURE_TEST_SUITE problem
Hi, the simple snippet doesn't compile on 1.43 or trunk: #include <boost/test/unit_test.hpp> struct F { F() : i( 0 ) { BOOST_TEST_MESSAGE( "setup fixture" ); } ~F() { BOOST_TEST_MESSAGE( "teardown fixture" ); } int i; }; BOOST_FIXTURE_TEST_SUITE( s, F ) $ g++ -I ../boost/1.43/include/ rr.cpp -c rr.cpp:10: error: expected ‘}’ at end of input which results into: ... namespace s { static boost::unit_test::ut_detail::auto_test_unit_registrar s_registrar10( "s" ); typedef F BOOST_AUTO_TEST_CASE_FIXTURE; where the closing '}' is really missing. Does I miss something? Thanks, Olaf
On Mon, May 17, 2010 at 3:09 PM, Olaf Peter <ope-devel@gmx.de> wrote:
Hi,
the simple snippet doesn't compile on 1.43 or trunk:
#include <boost/test/unit_test.hpp>
struct F { F() : i( 0 ) { BOOST_TEST_MESSAGE( "setup fixture" ); } ~F() { BOOST_TEST_MESSAGE( "teardown fixture" ); }
int i; };
BOOST_FIXTURE_TEST_SUITE( s, F )
$ g++ -I ../boost/1.43/include/ rr.cpp -c rr.cpp:10: error: expected ‘}’ at end of input
which results into:
<snip>
where the closing '}' is really missing. Does I miss something?
See BOOST_AUTO_TEST_SUITE_END() --Michael Fawcett
participants (2)
-
Michael Fawcett
-
Olaf Peter