db_updater: Put parentheses back
[merlin.git] / test_utils.h
blobe0ebfd889efbd870790471d674f909f2945a184b
1 #ifndef INCLUDE_test_utils_h__
2 #define INCLUDE_test_utils_h__
3 #define TEST_PASS 1
4 #define TEST_FAIL 0
6 extern const char *red, *green, *yellow, *cyan, *reset;
7 extern unsigned int passed, failed, t_verbose;
9 extern void t_set_colors(int force);
10 extern void t_start(const char *fmt, ...)
11 __attribute__((__format__(__printf__, 1, 2)));
12 extern void t_pass(const char *fmt, ...)
13 __attribute__((__format__(__printf__, 1, 2)));
14 extern void t_fail(const char *fmt, ...)
15 __attribute__((__format__(__printf__, 1, 2)));
16 extern void t_diag(const char *fmt, ...)
17 __attribute__((__format__(__printf__, 1, 2)));
18 extern int ok_int(int a, int b, const char *name);
19 extern int ok_uint(unsigned int a, unsigned int b, const char *name);
20 extern int ok_str(const char *a, const char *b, const char *name);
21 extern int t_end(void);
22 extern void crash(const char *fmt, ...)
23 __attribute__((__format__(__printf__, 1, 2), __noreturn__));
24 #endif