summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-14 10:25:26 +0000
committerEric Engestrom <[email protected]>2019-02-14 12:52:34 +0000
commitf7c56475d25138234ab0bb28a10df9000de594f9 (patch)
treeaeff470835c8819a1e9f1f4dcee6db7c93c80028 /src/intel
parent4c1ca5b074900bbc28164a7babc9b406be38b562 (diff)
anv/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/intel')
-rw-r--r--src/intel/vulkan/tests/block_pool_no_free.c2
-rw-r--r--src/intel/vulkan/tests/state_pool.c2
-rw-r--r--src/intel/vulkan/tests/state_pool_free_list_only.c2
-rw-r--r--src/intel/vulkan/tests/state_pool_no_free.c2
-rw-r--r--src/intel/vulkan/tests/state_pool_padding.c2
5 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/vulkan/tests/block_pool_no_free.c b/src/intel/vulkan/tests/block_pool_no_free.c
index dd1856ea714..f6aa47688af 100644
--- a/src/intel/vulkan/tests/block_pool_no_free.c
+++ b/src/intel/vulkan/tests/block_pool_no_free.c
@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
+#undef NDEBUG
+
#include <pthread.h>
#include "anv_private.h"
diff --git a/src/intel/vulkan/tests/state_pool.c b/src/intel/vulkan/tests/state_pool.c
index cb0e403f495..34743c601c3 100644
--- a/src/intel/vulkan/tests/state_pool.c
+++ b/src/intel/vulkan/tests/state_pool.c
@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
+#undef NDEBUG
+
#include <pthread.h>
#include "anv_private.h"
diff --git a/src/intel/vulkan/tests/state_pool_free_list_only.c b/src/intel/vulkan/tests/state_pool_free_list_only.c
index 3ea9e755927..9f1eb866e4e 100644
--- a/src/intel/vulkan/tests/state_pool_free_list_only.c
+++ b/src/intel/vulkan/tests/state_pool_free_list_only.c
@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
+#undef NDEBUG
+
#include <pthread.h>
#include "anv_private.h"
diff --git a/src/intel/vulkan/tests/state_pool_no_free.c b/src/intel/vulkan/tests/state_pool_no_free.c
index 404c8b003fc..cb6591266e8 100644
--- a/src/intel/vulkan/tests/state_pool_no_free.c
+++ b/src/intel/vulkan/tests/state_pool_no_free.c
@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
+#undef NDEBUG
+
#include <pthread.h>
#include "anv_private.h"
diff --git a/src/intel/vulkan/tests/state_pool_padding.c b/src/intel/vulkan/tests/state_pool_padding.c
index 7e9c4898e78..44509cde07a 100644
--- a/src/intel/vulkan/tests/state_pool_padding.c
+++ b/src/intel/vulkan/tests/state_pool_padding.c
@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
+#undef NDEBUG
+
#include "anv_private.h"
int main(int argc, char **argv)