44static void tap_vprintf(
const char *format, va_list ap);
47tap_plan_impl(
int n,
const char *format, ...)
56 _setmode(1, _O_BINARY);
62 if (format && *format) {
66 tap_vprintf(format, ap);
81tap_test_impl(
int test,
const char *expr,
const char *
file,
int line,
82 const char *format, ...)
88 printf(test ?
"ok %d" :
"not ok %d", ++tap_num);
93 tap_vprintf(format, ap);
99 printf(
"# %s:%d: Test `%s' failed.\n",
file, line, expr);
105tap_diag_impl(
const char *format, ...)
110 va_start(ap, format);
111 tap_vprintf(format, ap);
117tap_abort_impl(
const char *format, ...)
125 va_start(ap, format);
126 tap_vprintf(format, ap);
135tap_vprintf(
const char *format, va_list ap)
144 for (
char *cp = s; cp < s + n; cp++) {
147 if (cp + 1 < s + n && cp[1] ==
'\n')
155 default: fputc(*cp, stdout);
#define _Noreturn
A function declared with a _Noreturn function specifier SHALL not return to its caller.
This is the public header file of the Test Anything Protocol (TAP) library.
This is the internal header file of the Test Anything Protocol (TAP) library.
This header file is part of the C11 and POSIX compatibility library; it includes <stdio....
int vasprintf(char **strp, const char *fmt, va_list ap)
Equivalent to vsprintf(), except that it allocates a string large enough to hold the output,...
This header file is part of the C11 and POSIX compatibility library; it includes <stdlib....