diff options
author | Eric Engestrom <[email protected]> | 2019-02-14 10:25:26 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-14 12:52:34 +0000 |
commit | f7c56475d25138234ab0bb28a10df9000de594f9 (patch) | |
tree | aeff470835c8819a1e9f1f4dcee6db7c93c80028 | |
parent | 4c1ca5b074900bbc28164a7babc9b406be38b562 (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]>
-rw-r--r-- | src/intel/vulkan/tests/block_pool_no_free.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool_free_list_only.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool_no_free.c | 2 | ||||
-rw-r--r-- | src/intel/vulkan/tests/state_pool_padding.c | 2 |
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) |