Boost logo

Boost Users :

Subject: Re: [Boost-users] BOOST_FIXTURE_TEST_SUITE problem
From: Michael Fawcett (michael.fawcett_at_[hidden])
Date: 2010-05-17 15:28:46


On Mon, May 17, 2010 at 3:09 PM, Olaf Peter <ope-devel_at_[hidden]> 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


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