diff options
author | 2017-11-08 14:46:54 +0200 | |
---|---|---|
committer | 2017-11-08 14:46:54 +0200 | |
commit | c7198103b9816ef761ddbdf5d23f94e52afdc730 (patch) | |
tree | 06e1cdd5355000e3b828babba43ea3be8d973262 /test/test.c | |
parent | 02096520941201b3a90d3892eadf6846e8e1c5df (diff) | |
download | librin-c7198103b9816ef761ddbdf5d23f94e52afdc730.tar.gz librin-c7198103b9816ef761ddbdf5d23f94e52afdc730.tar.bz2 librin-c7198103b9816ef761ddbdf5d23f94e52afdc730.zip |
tests: split test and let meson handle them.
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 12 |
1 files changed, 5 insertions, 7 deletions
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; |