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

View File

@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include <pthread.h>
#include "anv_private.h"

View File

@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include <pthread.h>
#include "anv_private.h"

View File

@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include <pthread.h>
#include "anv_private.h"

View File

@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include <pthread.h>
#include "anv_private.h"

View File

@@ -21,6 +21,8 @@
* IN THE SOFTWARE.
*/
#undef NDEBUG
#include "anv_private.h"
int main(int argc, char **argv)