diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 20:46:19 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 20:46:19 -0500 |
commit | e22b9d26835a985d214f5736fa065efcfeb804d4 (patch) | |
tree | 59efb37e977a437ba0f3d175d2ffa93b50b2c302 /test.c | |
parent | beb56a867567447c7e7c3f4f2a948bb3732e74bd (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |