aboutsummaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-08-17 23:36:54 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-08-17 23:36:54 +0300
commit7a811406dd16e057204bed1aa15cfe33d81ccb6b (patch)
tree67437eea5c2b922cf3847f4b24b4988b0a566d36 /tests/test.h
downloadcovsrv-7a811406dd16e057204bed1aa15cfe33d81ccb6b.tar.gz
covsrv-7a811406dd16e057204bed1aa15cfe33d81ccb6b.zip
initial commit
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 */