anv/tests: compile to something sensible in release builds
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 14 Feb 2019 10:25:26 +0000 (10:25 +0000)
committerEric Engestrom <eric@engestrom.ch>
Thu, 14 Feb 2019 12:52:34 +0000 (12:52 +0000)
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>
src/intel/vulkan/tests/block_pool_no_free.c
src/intel/vulkan/tests/state_pool.c
src/intel/vulkan/tests/state_pool_free_list_only.c
src/intel/vulkan/tests/state_pool_no_free.c
src/intel/vulkan/tests/state_pool_padding.c

index dd1856ea7148858c556f0c07fd059619cea6857c..f6aa47688afca44df3a5ae5ebc255627989944f4 100644 (file)
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#undef NDEBUG
+
 #include <pthread.h>
 
 #include "anv_private.h"
index cb0e403f495e7e85ac30d960975633e766dede40..34743c601c36caf6ff76941c33b6612e72cac016 100644 (file)
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#undef NDEBUG
+
 #include <pthread.h>
 
 #include "anv_private.h"
index 3ea9e755927bbbae77df06526774995d18be4429..9f1eb866e4e6419f6498c11893e3016edeaf2e87 100644 (file)
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#undef NDEBUG
+
 #include <pthread.h>
 
 #include "anv_private.h"
index 404c8b003fc55a4c3958fa8568628136ac13de1f..cb6591266e85f146c07881f51a08153a3edc92ea 100644 (file)
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#undef NDEBUG
+
 #include <pthread.h>
 
 #include "anv_private.h"
index 7e9c4898e78ea0eaa57ae7a4b8144405ee5cac9b..44509cde07aa95e57676a00526d616bb07c96300 100644 (file)
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#undef NDEBUG
+
 #include "anv_private.h"
 
 int main(int argc, char **argv)