12 Feb
2009
12 Feb
'09
5:04 p.m.
I mean some kind of solid calling my finalization function to properly stop
Vinokurov, Aleksandr
final {} in Java -- even if the test fails by BOOST_REQUIRE or BOOST_FAIL.
Any suggestions or recommendations from gurus?
You should use Fixtures.
Oh, just remembered: I use 1.33 version of Boost.
This release did not have internal support for fixtures, but you can do regular C++ RAII based solution. Implement fixture class (init in contructor, teardown in destructor) and instantiate it on a first line of test method. Gennadiy