Used to specify a routine that is to be used as setup routine. The setup routine will be called once, before any of the test routnes are executed.
Specifying CFIX_FIXTURE_SETUP is optional. Note, however, that CFIX_FIXTURE_SETUP may be used at most once per fixture definition.
See here for an example of a complete fixture definition.
CFIX_FIXTURE_SETUP( Routine )
Setup routines must have the following signature. Specifying __stdcall is only required if /Gz is not used as compiler switch.
void __stdcall SetupRoutine()
If the setup routine fails, none of the test routines will be executed. The teardown routine will not be invoked either.
|For certain initialization work, it may be more advantageous to use a before-routine rather than a setup routine.|