logging: Print final newline to same file-pointer as the rest
[nagios-reports-module.git] / test_utils.h
blobed90231532bd9f70d0f9b9922a6f98b451a0e24a
1 #ifndef INCLUDE_test_utils_h__
2 #define INCLUDE_test_utils_h__
3 #define TEST_PASS 0
4 #define TEST_FAIL 1
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__));
22 #endif