From c7198103b9816ef761ddbdf5d23f94e52afdc730 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Wed, 8 Nov 2017 14:46:54 +0200 Subject: tests: split test and let meson handle them. --- test/test.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index e790538..7e10d9f 100644 --- a/test/test.c +++ b/test/test.c @@ -20,18 +20,16 @@ #include "test.h" -struct test_results ok(const unsigned int test, const char *format, ...) +int ok(const unsigned int test, const char *format, ...) { - static struct test_results ret; + static int ret; va_list args; - ++ret.executed; - if (test) { - ++ret.failed; + ++ret; va_start(args, format); - vprintf(format, args); - putchar('\n'); + vfprintf(stderr, format, args); + fputc('\n', stderr); } return ret; -- cgit v1.2.3