diff options
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; |