summaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-10-31 21:31:39 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-11-02 11:49:44 +0100
commit7c4b2a289cab34e4ec1b966663530a7babf08707 (patch)
tree612ac3ad117f0235a0653eecba20f5b1842fb0b0 /tests/test.h
parent105b454b944e24cf1e033d1b7211cadabbcfe7df (diff)
Backport changes to the test setup
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/test.h')
-rw-r--r--tests/test.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h
index 7d38fd0..bc3ac92 100644
--- a/tests/test.h
+++ b/tests/test.h
@@ -13,6 +13,11 @@
#include <stdio.h>
#include <errno.h>
+#define STR(x) #x
+#define STRVALUE(x) STR(x)
+
+#define TEST_PATH STRVALUE(TESTPATH)
+
#if defined(__GNUC__) || defined(__clang__)
# define ATTRIB_UNUSED __attribute__ ((unused))
#else