summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-28 20:46:19 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-28 20:46:19 -0500
commite22b9d26835a985d214f5736fa065efcfeb804d4 (patch)
tree59efb37e977a437ba0f3d175d2ffa93b50b2c302 /test.c
parentbeb56a867567447c7e7c3f4f2a948bb3732e74bd (diff)
refactor test names with _h to avoid collisions
move prototypes to main.c to avoid continuous growth of test.h add final tally
Diffstat (limited to 'test.c')
-rw-r--r--test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.c b/test.c
index 79fd807..531d25b 100644
--- a/test.c
+++ b/test.c
@@ -1,6 +1,8 @@
#include <stdio.h>
#include <stdarg.h>
+unsigned int total_passed = 0;
+unsigned int total_failed = 0;
static int passed;
static int failed;
int verbose = 0;
@@ -66,7 +68,10 @@ void testing_end(void)
printf("%d tests passed, %d tests failed\n", passed, failed);
+ total_passed += passed;
passed = 0;
+
+ total_failed += failed;
failed = 0;
}