1 #ifndef INCLUDE_test_utils_h__
2 #define INCLUDE_test_utils_h__
6 typedef unsigned int uint
;
7 extern const char *red
, *green
, *yellow
, *cyan
, *reset
;
8 extern uint passed
, failed
, t_verbose
;
9 extern void t_set_colors(int force
);
10 extern void t_pass(const char *fmt
, ...)
11 __attribute__((__format__(__printf__
, 1, 2)));
12 extern void t_fail(const char *fmt
, ...)
13 __attribute__((__format__(__printf__
, 1, 2)));
14 extern void t_diag(const char *fmt
, ...)
15 __attribute__((__format__(__printf__
, 1, 2)));
16 extern int ok_int(int a
, int b
, const char *name
);
17 extern int ok_uint(uint a
, uint b
, const char *name
);
18 extern int ok_str(const char *a
, const char *b
, const char *name
);
19 extern int t_end(void);
20 extern void crash(const char *fmt
, ...)
21 __attribute__((__format__(__printf__
, 1, 2), __noreturn__
));