Next: C++ unit testing API, Previous: The dejagnu_h header file, Up: Unit testing
All of the functions that take a msg
parameter use a C char
*
that is the message to be displayed. There currently is no support
for variable length arguments.
pass
prints a message for a successful test completion.
pass(msg);
fail
prints a message for an unsuccessful test completion.
fail(msg);
untested
prints a message for an test case that isn’t run for
some technical reason.
untested(msg);
unresolved
prints a message for an test case that is run, but
there is no clear result. These output states require a human to look
over the results to determine what happened.
unresolved(msg);
totals
prints out the total numbers of all the test state
outputs.
totals();