Go to the source code of this file.
|
#define | STA(x) [STATUS_ ## x] = #x |
|
◆ STA
#define STA |
( |
|
x | ) |
[STATUS_ ## x] = #x |
◆ test_status
Enumerator |
---|
STATUS_RUNNING | Test not yet completed.
|
STATUS_SUCCESS | Test was successful.
|
STATUS_SKIP | Test cannot be completed.
|
STATUS_ERROR | Issue with the test itself.
|
STATUS_FAILURE | Issue with the tested matter.
|
Definition at line 5 of file report.c.
◆ set_status()
◆ xtf_success()
void xtf_success |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Report test success.
Definition at line 38 of file report.c.
◆ xtf_warning()
void xtf_warning |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Report a test warning.
Does not count against a test success, but does indicate that some problem was encountered.
Definition at line 52 of file report.c.
◆ xtf_skip()
void xtf_skip |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Report a test skip.
Indicates that the test cannot be completed. This may count as a success or failure, depending on the opinion of the tester.
Definition at line 66 of file report.c.
◆ xtf_error()
void xtf_error |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Report a test error.
Indicates an error with the test code, or environment, and not with the subject matter under test.
Definition at line 80 of file report.c.
◆ xtf_failure()
void xtf_failure |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Report a test failure.
Indicates that the subject matter under test has failed to match expectation.
Definition at line 94 of file report.c.
◆ xtf_report_status()
void xtf_report_status |
( |
void |
| ) |
|
Print a status report.
If a report has not yet been set, an error will occur.
Definition at line 108 of file report.c.
◆ xtf_status_reported()
bool xtf_status_reported |
( |
void |
| ) |
|
Query whether a status has already been reported.
Definition at line 119 of file report.c.
◆ xtf_exit()
Exit the test early.
Reports the current status. Does not return.
Definition at line 124 of file report.c.
◆ status
Current status of this test.
Definition at line 14 of file report.c.
◆ warnings
Whether a warning has occurred.
Definition at line 17 of file report.c.
◆ status_to_str
const char* status_to_str[] |
|
static |
Initial value:
Definition at line 19 of file report.c.