tests: undef NDEBUG in tests
So we can run tests even when compiled with -DNDEBUG
Change-Id: Iebb8399409e2b0a5172529e08bcac188956fd925
Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com>
diff --git a/tests/test_bridge.c b/tests/test_bridge.c
index c710617..35625ca 100644
--- a/tests/test_bridge.c
+++ b/tests/test_bridge.c
@@ -1,5 +1,9 @@
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
@@ -77,7 +81,6 @@
int main(void)
{
struct test_ctx _ctx, *ctx = &_ctx;
-
ctx->mctp = mctp_init();
ctx->bindings[0] = mctp_binding_bridge_init("binding0");