Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-12-27 03:38:37


"Pierre-Jules Tremblay" <boost_at_[hidden]> wrote in message
> One suggestion might be to add a new class of fixture. There is a feature
> for test case specific fixtures, another for test suite-specifc fixtures,
> and the perhaps ill-named global fixture, which is run independently for
> all
> test cases. Perhaps there should be another fixture, a really global one,
> which is constructed before all tests are run and destroyed after all
> tests
> are run. A static variable won't cut it because of the
> order-of-initialisation fiasco.

I might be missing something, but from my understanding that is what
BOOST_GLOBAL_FIXTURE is doing. It is setup leg executed before testing is
started. Teardown once all tests are completed.

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk