mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
tests: fail build if NDEBUG is defined
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
84464a3e9b
commit
b1d4eb24c6
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue