Boost logo

Boost Users :

From: Jules d'Entremont (Jules.dEntremont_at_[hidden])
Date: 2007-04-04 14:08:27


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.



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