print log before displaying summary

This commit is contained in:
jlamothe 2023-11-07 19:36:54 +00:00
parent 3900a39205
commit d58372991f

View File

@ -61,11 +61,11 @@ run_tests(void (*tests)(TestState *))
TestState s;
init_TestState(&s);
(*tests)(&s);
print_log(&s);
printf("Tests run: %d\n", s.run);
printf("Tests passed: %d\n", s.passed);
printf("Tests failed: %d\n", s.failed);
printf("Tests postponed: %d\n", s.postponed);
print_log(&s);
clear_log(&s);
}