From 15250710c63a2c3d230304e46a03532f787759fb Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 17 Apr 2020 09:38:43 +0200 Subject: tests: improve diagnostics output & make "release builds" work This commit adds a few macros and helper functions for the unit test programs. Those are used instead of asserts to provide more fine grained diagnostics on the one hand and on the other hand because they also work if NDEBUG is defined, unlike asserts that get eliminated in that case. Signed-off-by: David Oberhollenzer --- tests/canonicalize_name.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/canonicalize_name.c') diff --git a/tests/canonicalize_name.c b/tests/canonicalize_name.c index 3601569..679cd06 100644 --- a/tests/canonicalize_name.c +++ b/tests/canonicalize_name.c @@ -6,10 +6,7 @@ */ #include "config.h" #include "fstree.h" - -#include -#include -#include +#include "test.h" static const struct { const char *in; -- cgit v1.2.3