The library consists of three functions and a macro:
Status tester_start(uchar *filename, uint32 flags);
Status tester_report(Bool success, uchar *msg, uint32 line,
uchar *file, uchar *module);
Status tester_end(void);
#define TESTER_REPORT(x, y, z) tester_report(x, y, __LINE__, __FILE__, z)
Use the tester_start() to initialize the library,
TESTER_REPORT -macro to report success/failure (by the
first boolean argument, True == success, False == failure)
and at the end the tester_end() to finish testing.
The flags for the tester_start() function specify
what the output should be generated. Normally this is set to
TESTER_OUTPUT_REPORT.
The tester library records the following signals:
SIGILL
SIGABRT
SIGFPE
SIGSEGV
SIGTRAP
SIGBUS
|