test.h File Reference

Definitions used for test code. More...

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

Go to the source code of this file.

Defines

#define TEST_FAILED   TestFailed(__FILE__,__LINE__)
#define TEST(c)   (void)((c)||TEST_FAILED)

Functions

int TestFailed (const char *file, int line)

Detailed Description

Definitions used for test code.

Test:

Definition in file test.h.


Define Documentation

#define TEST_FAILED   TestFailed(__FILE__,__LINE__)

Macro which calls TestFailed with arguments corresponging to the current source code line.

Definition at line 48 of file test.h.

#define TEST (  )     (void)((c)||TEST_FAILED)

Test that a given value is true. If it is true, no action is taken, otherwise TEST_FAILED is called.

Parameters:
c Condition to be tested.

Definition at line 56 of file test.h.


Function Documentation

int TestFailed ( const char *  file,
int  line 
)

Prototype for function called whenever a test case fails.

Parameters:
file Name of source file containing the test case.
line Line number of test case within file
See also:
TEST_FAILED

Generated by  doxygen 1.6.1