
[Please do not mail me a copy of your followup] boost-users@lists.boost.org spake the secret code <EF0D056B-3640-465C-A404-78D62F563E2C@verizon.net> thusly:
A global fixture seems like a more appropriate solution than implementing main().
BOOST_GLOBAL_FIXTURE http://www.boost.org/doc/libs/1_55_0/libs/test/doc/html/utf/user-guide/fixtu...
A global fixture doesn't work quite the way you think it does. It is possible for test cases to execute before your global fixture has been instantiated. That is, a global fixture is only "global" for a single translation unit and not multiple translation units. Therefore, I recommend using a custom implementation of main instead of a global fixture, since this *really* should only be done once per process and not the way global fixtures work. -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Computer Graphics Museum <http://computergraphicsmuseum.org> The Terminals Wiki <http://terminals.classiccmp.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>