Xen Test Framework
|
API for reporting test status. More...
Go to the source code of this file.
Functions | |
void | xtf_success (const char *fmt,...) |
Report test success. More... | |
void | xtf_warning (const char *fmt,...) |
Report a test warning. More... | |
void | xtf_skip (const char *fmt,...) |
Report a test skip. More... | |
void | xtf_error (const char *fmt,...) |
Report a test error. More... | |
void | xtf_failure (const char *fmt,...) |
Report a test failure. More... | |
void | xtf_report_status (void) |
Print a status report. More... | |
bool | xtf_status_reported (void) |
Query whether a status has already been reported. More... | |
void | xtf_exit (void) |
Exit the test early. More... | |
API for reporting test status.
A test is expected to report one of:
'Success' indicates that everything went well, while 'Skip' indicates that the test cannot be completed for configuration reasons. 'Error' indicates a bug in the test code or environment itself, while 'Failure' indicates a bug in the code under test.
If multiple statuses are reported, the most severe is the one which is kept.
Definition in file report.h.
void xtf_success | ( | const char * | fmt, |
... | |||
) |
void xtf_warning | ( | const char * | fmt, |
... | |||
) |
void xtf_skip | ( | const char * | fmt, |
... | |||
) |
void xtf_error | ( | const char * | fmt, |
... | |||
) |
void xtf_failure | ( | const char * | fmt, |
... | |||
) |
void xtf_report_status | ( | void | ) |
bool xtf_status_reported | ( | void | ) |