summaryrefslogtreecommitdiffstats
path: root/src/util/tests/hash_table/replacement.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-14 10:30:47 +0000
committerEric Engestrom <[email protected]>2019-02-14 12:52:34 +0000
commitc2b4b46fa9394b15339686d569dff1d39c46d759 (patch)
tree042be074803dd977cb0f3d03983d7efac84e7717 /src/util/tests/hash_table/replacement.c
parentf7c56475d25138234ab0bb28a10df9000de594f9 (diff)
util/tests: compile to something sensible in release builds
assert()-based tests make no sense without asserts, so make sure asserts are compiled in, even if the rest of the code has asserts turned off. Signed-off-by: Eric Engestrom <[email protected]> Acked-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/util/tests/hash_table/replacement.c')
-rw-r--r--src/util/tests/hash_table/replacement.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/tests/hash_table/replacement.c b/src/util/tests/hash_table/replacement.c
index 58c22aeb812..e74e63453c4 100644
--- a/src/util/tests/hash_table/replacement.c
+++ b/src/util/tests/hash_table/replacement.c
@@ -24,6 +24,8 @@
* Eric Anholt <[email protected]>
*/
+#undef NDEBUG
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>