anv/tests: Don't rely on assert or changing NDEBUG in tests
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 May 2020 19:33:24 +0000 (12:33 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 16:47:08 +0000 (16:47 +0000)
commitf4638cfdad3199bd97cf8ca7070008186bff456a
treeea78f5b9c9a78a181764008bd481540497a553ed
parent66e3c74f9c7ffdd7687d4304238b50c3ba35ef47
anv/tests: Don't rely on assert or changing NDEBUG in tests

This is the last part of the fix for #2903.

v2: Add test_common.h.

Fixes: f7c56475d25 ("anv/tests: compile to something sensible in release builds")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994>
src/intel/vulkan/tests/block_pool_grow_first.c
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
src/intel/vulkan/tests/state_pool_test_helper.h
src/intel/vulkan/tests/test_common.h [new file with mode: 0644]