mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-16 18:38:28 +02:00
Fix the qmckl_context test to pass in DEBUG mode
This commit is contained in:
parent
9ec3d19777
commit
1600041f6c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user