From b1d4eb24c6079468f57b4706358031461ee44130 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 19 Apr 2012 12:14:19 +0300 Subject: [PATCH] tests: fail build if NDEBUG is defined Signed-off-by: Pekka Paalanen --- tests/test-runner.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-runner.h b/tests/test-runner.h index 238e613..253df81 100644 --- 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); -- 2.7.4