diff options
Diffstat (limited to 'tests/common/test.h')
| -rw-r--r-- | tests/common/test.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/common/test.h b/tests/common/test.h index 1476fdf..f819ad8 100644 --- a/tests/common/test.h +++ b/tests/common/test.h @@ -8,18 +8,17 @@ #include "start.h" #include "printf.h" -#define error(x, ...)\ - printf("ERROR: " x, ## __VA_ARGS__) +#define fail(x, ...)\ + printf("FAIL: " x, ## __VA_ARGS__) #define check(x, y, ...)\ if (!(x)) {\ - error(y, ##__VA_ARGS__);\ + fail(y, ##__VA_ARGS__);\ sys_poweroff(SYS_SHUTDOWN);\ } -static inline void ok() { - printf("OK\n"); - sys_poweroff(SYS_SHUTDOWN); -} +#define ok()\ + printf("OK\n");\ + sys_poweroff(SYS_SHUTDOWN) #endif /* KMI_TESTS_H */ |
