Visual Assert – The Unit Testing Add-In for Visual C++
cfix – C/C++ Unit Testing for Win32 and NT
 
 

CFIX_BEGIN_FIXTURE_EX

CFIX_BEGIN_FIXTURE_EX

Synopsis

CFIX_BEGIN_FIXTURE_EX defines the start of a fixture definition. It is also used to specify the name of the fixture.

CFIX_BEGIN_FIXTURE_EX behaves like CFIX_BEGIN_FIXTURE, but additionally allows flags to be specified. Flags can be used to enable/disable certain features for this specific fixture.

See here for an example of a complete fixture definition.

Declaration
CFIX_BEGIN_FIXTURE_EX( FixtureName, ULONG Flags )
				
[Note]Note
Do not put quotes around the fixture name.
Parameters

FixtureName: defines the name of the fixture. It must be unique across all fixtures of the same test module (i.e. DLL). The same restrictions as for naming routines apply, i.e. no spaces, no special characters etc.

Flags: Flags for enabling/disabling certain features. The following flags are currently availale:

Table 7.19. 

FlagDescription
CFIX_FIXTURE_USES_ANONYMOUS_THREADS Enable Anonymous Thread Auto-Registration for this fixture.


If Flags is set to 0, CFIX_BEGIN_FIXTURE_EX is equivalent to CFIX_BEGIN_FIXTURE.

Requirements

Table 7.20. 

 User ModeKernel Mode
Available since1.6Not supported
HeaderDeclared in cfix.hNot supported
IRQLN/AN/A