aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-09 08:22:12 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-09 08:22:12 -0400
commit7a44ef97e92005ae6cef9654b77f469afedd42a8 (patch)
treee9bd6cd387af9b582fc7f002569f75916b863f7f
parente9eba67358a5a015dac75d7db4199364cf1b5991 (diff)
downloadstasis-7a44ef97e92005ae6cef9654b77f469afedd42a8.tar.gz
Handle lack of __FILE_NAME__ define
-rw-r--r--tests/testing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testing.h b/tests/testing.h
index 2b5c1ba..35bfbd2 100644
--- a/tests/testing.h
+++ b/tests/testing.h
@@ -5,6 +5,10 @@
#define OMC_TEST_SUITE_FATAL 1
#define OMC_TEST_SUITE_SKIP 127
+#ifndef __FILE_NAME__
+#define __FILE_NAME__ __FILE__
+#endif
+
typedef void(OMC_TEST_FUNC)();
struct omc_test_result_t {
const char *filename;