projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84464a3
)
tests: fail build if NDEBUG is defined
author
Pekka Paalanen
<ppaalanen@gmail.com>
Thu, 19 Apr 2012 09:14:19 +0000
(12:14 +0300)
committer
Pekka Paalanen
<ppaalanen@gmail.com>
Thu, 19 Apr 2012 09:14:19 +0000
(12:14 +0300)
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
tests/test-runner.h
patch
|
blob
|
history
diff --git
a/tests/test-runner.h
b/tests/test-runner.h
index
238e613
..
253df81
100644
(file)
--- a/
tests/test-runner.h
+++ b/
tests/test-runner.h
@@
-1,6
+1,10
@@
#ifndef _TEST_RUNNER_H_
#define _TEST_RUNNER_H_
+#ifdef NDEBUG
+#error "Tests must not be built with NDEBUG defined, they rely on assert()."
+#endif
+
struct test {
const char *name;
void (*run)(void);