summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-12-03 11:34:32 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-12-03 20:32:15 +0100
commitee1740e38db69c6353f6b13beed894c15ce1b5d1 (patch)
tree58c018d3f9babdc4750866801afd6673665dc3f0
parentff8d2195228bbd9556e050124ce1ad32337bc772 (diff)
downloadgnutls-tmp-pkcs11-update.tar.gz
tests: utils.h: forbid compilation with NDEBUGtmp-pkcs11-update
This allows to rely on the assert() macro being functional on the test suite. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-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