aboutsummaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.h')
-rw-r--r--tests/test.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h
new file mode 100644
index 0000000..d7832d1
--- /dev/null
+++ b/tests/test.h
@@ -0,0 +1,10 @@
+#ifndef TEST_H
+#define TEST_H
+
+#include <stdlib.h>
+#include <covsrv/covsrv.h>
+
+#define mallocc(n) ({covsrv_die() ? NULL : malloc(n);})
+#define reallocc(p, n) ({covsrv_die() ? NULL : realloc(p, n);})
+
+#endif /* TEST_ALLOC_H */