Xen Test Framework
report.h
Go to the documentation of this file.
1#ifndef XTF_REPORT_H
2#define XTF_REPORT_H
3
4#include <xtf/types.h>
5#include <xtf/compiler.h>
6
30void xtf_success(const char *fmt, ...) __printf(1, 2);
31
38void xtf_warning(const char *fmt, ...) __printf(1, 2);
39
46void xtf_skip(const char *fmt, ...) __printf(1, 2);
47
54void xtf_error(const char *fmt, ...) __printf(1, 2);
55
62void xtf_failure(const char *fmt, ...) __printf(1, 2);
63
69void xtf_report_status(void);
70
74bool xtf_status_reported(void);
75
81void __noreturn xtf_exit(void);
82
83#endif /* XTF_REPORT_H */
84
85/*
86 * Local variables:
87 * mode: C
88 * c-file-style: "BSD"
89 * c-basic-offset: 4
90 * tab-width: 4
91 * indent-tabs-mode: nil
92 * End:
93 */
#define __noreturn
Definition: compiler.h:10
#define __printf(f, v)
Definition: compiler.h:12
void xtf_failure(const char *fmt,...)
Report a test failure.
Definition: report.c:94
void xtf_error(const char *fmt,...)
Report a test error.
Definition: report.c:80
void xtf_report_status(void)
Print a status report.
Definition: report.c:108
void xtf_exit(void)
Exit the test early.
Definition: report.c:124
void xtf_skip(const char *fmt,...)
Report a test skip.
Definition: report.c:66
bool xtf_status_reported(void)
Query whether a status has already been reported.
Definition: report.c:119
void xtf_warning(const char *fmt,...)
Report a test warning.
Definition: report.c:52
void xtf_success(const char *fmt,...)
Report test success.
Definition: report.c:38
Common declarations for all tests.