Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

event-test.h File Reference


Detailed Description

For internal use only.

This file includes the header files necessary for initializing the test suit programs. It also contains the definition of the ev_test_init() macro, which initializes a test program.

Definition in file event-test.h.

#include "test-harness.h"
#include "event_int.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for event-test.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ev_test_init(test)
 Initialize test program.
#define ev_prog_name(prog, argv)
 Locate program name.
#define ev_lib_init(argc, argv, prog, ctx)
 Set up event library for testing all other functions.


Define Documentation

#define ev_lib_init argc,
argv,
prog,
ctx   ) 
 

For internal use only.

This macro performs the steps necessary to initialize the event library, including calling event_init() (which is why this macro is not used by t_event_init).

Parameters:
[in] argc The number of arguments passed to the main() function.
[in] argv The argument vector passed to the main()function.
[in] prog The name of the program for printing errors.
[in] ctx A pointer to an ev_ctx_t to be initialized.

Definition at line 98 of file event-test.h.

Referenced by main().

#define ev_prog_name prog,
argv   ) 
 

For internal use only.

This macro simply locates the actual program name and sets the prog argument to point to it.

Parameters:
[in] prog The string to be pointed to the program name.
[in] argv The argument vector passed to the main() function.

Definition at line 73 of file event-test.h.

Referenced by main().

#define ev_test_init test   ) 
 

For internal use only.

This macro initializes the test program. It turns on library logging (for later debugging) and issues a log message including the test program name.

Parameters:
[in] test The test program name. Note that this is a bare word, as if for the TEST* macros defined by test-harness.h.

Definition at line 56 of file event-test.h.

Referenced by main().


Generated on Wed Dec 28 23:37:06 2005 for event by  doxygen 1.4.4