From 1600041f6c13ae7983c0b95368524b40a0ee1cfc Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 11 Jul 2022 10:21:16 +0200 Subject: [PATCH] Fix the qmckl_context test to pass in DEBUG mode --- org/qmckl_context.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org/qmckl_context.org b/org/qmckl_context.org index 9054ba1..33020d0 100644 --- a/org/qmckl_context.org +++ b/org/qmckl_context.org @@ -520,11 +520,13 @@ assert(qmckl_context_check(context) == context); assert(qmckl_context_destroy(context) == QMCKL_SUCCESS); /* Check that context is destroyed */ +#ifndef DEBUG assert(qmckl_context_check(context) != context); assert(qmckl_context_check(context) == QMCKL_NULL_CONTEXT); /* Destroy invalid context */ assert(qmckl_context_destroy(QMCKL_NULL_CONTEXT) == QMCKL_INVALID_CONTEXT); +#endif #+end_src * End of files :noexport: