tests: fail build if NDEBUG is defined

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-04-19 12:14:19 +03:00
parent 84464a3e9b
commit b1d4eb24c6

View file

@ -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);