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 <eric.engestrom@intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Eric Engestrom 2019-02-14 10:30:47 +00:00 committed by Eric Engestrom
parent f7c56475d2
commit c2b4b46fa9
12 changed files with 24 additions and 0 deletions

View file

@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include <gtest/gtest.h>
#include "util/bigmath.h"
#include "util/fast_idiv_by_const.h"

View file

@ -21,6 +21,8 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#undef NDEBUG
#include "hash_table.h"
static void *make_key(uint32_t i)

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View file

@ -24,6 +24,8 @@
* Eric Anholt <eric@anholt.net>
*/
#undef NDEBUG
#include <stdlib.h>
#include <stdio.h>
#include <string.h>