summaryrefslogtreecommitdiffstats
path: root/tests/include/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/test.h')
-rw-r--r--tests/include/test.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/include/test.h b/tests/include/test.h
index 24fa963b4..ef0b9a6f6 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -27,4 +27,19 @@
#include <setjmp.h>
#include <cmocka.h>
+#define NON_ZERO (0xf000baaa)
+
+#define MOCK_FD (0x10ec)
+
+#define SKIP_TEST(name) \
+ void name (void **state) { skip(); }
+
+/*
+ * Having this as function allows to set a breakpoint on the address,
+ * as it has a named symbol associated with the address number.
+ */
+void *not_null(void);
+
+#define LOG_ME printf("%s is called\n", __func__)
+
#endif /* _TESTS_TEST_H */