From d8e600db17705fe91287c71633679ab3459263ec Mon Sep 17 00:00:00 2001 From: Kees Jongenburger Date: Fri, 7 Dec 2012 10:49:34 +0100 Subject: [PATCH] Allow tests to fail on the first encountered error. Pre increment errct in test to be able to fail on the first error. --- test/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common.c b/test/common.c index 2da265d97..7807d79da 100644 --- a/test/common.c +++ b/test/common.c @@ -106,7 +106,7 @@ int n; if (errct == 0) printf("\n"); /* finish header */ printf("Subtest %d, error %d, errno %d: %s\n", subtest, n, errno, strerror(errno)); - if (errct++ > MAX_ERROR) { + if (++errct > MAX_ERROR) { printf("Too many errors; test aborted\n"); cleanup(); exit(1);