Commit b92b397d authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Daniel Vetter

build: Make sure asserts are enabled for tests

Tests depend on assertions being enabled since they can, and do,
contain actual test steps. They are also mandatory for ensuring
sane test case behaviour.
Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <>
parent aee0dcb1
#ifdef NDEBUG
#error "Testsuite needs its asserts!"
......@@ -40,7 +40,7 @@ define add_test
LOCAL_CFLAGS += -DANDROID -UNDEBUG -include "check-ndebug.h"
LOCAL_CFLAGS += -std=c99
# FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
LOCAL_CFLAGS += -Wno-error=return-type
......@@ -23,6 +23,7 @@ CLEANFILES = $(EXTRA_PROGRAMS)
-I$(srcdir)/.. \
-I$(srcdir)/../lib \
-include "check-ndebug.h" \
-DIGT_DATADIR=\""$(abs_srcdir)"\" \
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment