I have a set of unit tests that require an
initialization function to be called once at program startup, and a shutdown
function to be called at program exit. Something like this:
int main()
{
init();
// run unit tests
fini();
}
Is it possible using the unit test framework for me
to substitute my own main() function for the one that normally gets run by the
framework? Or is there some other way of accomplishing the same thing?
Jules d’Entremont.