summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.h b/tests/utils.h
index d59c8e7bfe..a6ef3e4600 100644
--- a/tests/utils.h
+++ b/tests/utils.h
@@ -37,6 +37,10 @@
#endif
#endif
+#ifdef NDEBUG
+# error tests cannot be compiled with NDEBUG defined
+#endif
+
inline static int global_init(void)
{
#ifdef ENABLE_PKCS11