Boost logo

Boost Users :

Subject: [Boost-users] BOOST_FIXTURE_TEST_SUITE problem
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2010-05-17 15:09:40


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


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