summaryrefslogtreecommitdiff
path: root/lib/check-ndebug.h
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2013-12-03 15:09:57 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-03 17:08:03 +0100
commitb92b397d5e4ffe10ed92fb2fc6711758ef5bcf89 (patch)
treea768e54e11fdb8916295a9c5b884a7c6fa6b3fd7 /lib/check-ndebug.h
parentaee0dcb1ec2075991d310dd6f3fb5e50160847d1 (diff)
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 <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/check-ndebug.h')
-rw-r--r--lib/check-ndebug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/check-ndebug.h b/lib/check-ndebug.h
new file mode 100644
index 00000000..68a6ec4c
--- /dev/null
+++ b/lib/check-ndebug.h
@@ -0,0 +1,3 @@
+#ifdef NDEBUG
+#error "Testsuite needs its asserts!"
+#endif