From e22b9d26835a985d214f5736fa065efcfeb804d4 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 28 Feb 2019 20:46:19 -0500 Subject: refactor test names with _h to avoid collisions move prototypes to main.c to avoid continuous growth of test.h add final tally --- test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test.c') diff --git a/test.c b/test.c index 79fd807..531d25b 100644 --- a/test.c +++ b/test.c @@ -1,6 +1,8 @@ #include #include +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; } -- cgit v1.2.1