glib-aux/tests: reinclude <assert.h> with NDEBUG undefined

While we usually don't do that, we also want to build with NDEBUG.
But in that case, we don't want that the assertions from our unit
tests are disabled.

Solve that by undefining NDEBUG and re-including <assert.h>.
This commit is contained in:
Thomas Haller 2022-10-20 14:42:25 +02:00
parent 51e41566a7
commit 0d5b04ad9c
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -85,6 +85,9 @@
#undef g_assertion_message_expr
#endif
#undef NDEBUG
#include <assert.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>