aboutsummaryrefslogtreecommitdiff
path: root/tests/common/test.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-01-25 15:07:04 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2026-01-25 15:07:04 +0200
commite8a7fe3bd5c40168d531a6a4f00a7417a278d58c (patch)
treeddbbead310cd8951ea277eb4e1a13dff7d1a3dd9 /tests/common/test.h
parent783e615ca031045eaa979532fc2c2b762ed8593f (diff)
downloadkmi-e8a7fe3bd5c40168d531a6a4f00a7417a278d58c.tar.gz
kmi-e8a7fe3bd5c40168d531a6a4f00a7417a278d58c.zip
allow reading fdt in tests
Diffstat (limited to 'tests/common/test.h')
-rw-r--r--tests/common/test.h13
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 */