diff options
author | Eric Engestrom <[email protected]> | 2019-02-14 10:30:47 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-14 12:52:34 +0000 |
commit | c2b4b46fa9394b15339686d569dff1d39c46d759 (patch) | |
tree | 042be074803dd977cb0f3d03983d7efac84e7717 /src/util/tests/hash_table/replacement.c | |
parent | f7c56475d25138234ab0bb28a10df9000de594f9 (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.c | 2 |
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> |