Next: , Previous: , Up: Unit testing   [Contents][Index]


6.4 C unit testing API

The C API is provided in the dejagnu.h header file. This header provides a self-contained implementation. For convenience, the totals() function can be called at the end of the unit test program to output summary totals. DejaGnu counts the test results independently and will operate correctly even if totals() is never invoked.

All of the functions that take a msg parameter use a C char * that is the message to be displayed. All of the functions that display a message accept a printf-style format string and variable arguments.


Next: C++ unit testing API, Previous: DejaGnu unit test protocol, Up: Unit testing   [Contents][Index]