summaryrefslogtreecommitdiffstats
path: root/exporting/tests/test_exporting_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'exporting/tests/test_exporting_engine.h')
-rw-r--r--exporting/tests/test_exporting_engine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/exporting/tests/test_exporting_engine.h b/exporting/tests/test_exporting_engine.h
index 800be1b996..f8003b0e47 100644
--- a/exporting/tests/test_exporting_engine.h
+++ b/exporting/tests/test_exporting_engine.h
@@ -30,7 +30,14 @@
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
+
+#ifndef UNIT_TESTING
+#include <cmocka.h>
+#else
+#undef UNIT_TESTING
#include <cmocka.h>
+#define UNIT_TESTING
+#endif
#define MAX_LOG_LINE 1024
extern char log_line[];