Skip to content

Commit eed3c9b

Browse files
Update unittest.c
1 parent ce7e884 commit eed3c9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

code/logic/unittest.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ void fossil_test_summary(fossil_test_env_t *env) {
417417
while (suite != NULL) {
418418
test_case_t *test = suite->tests;
419419
while (test != NULL) {
420-
total_tests++;
421420
total_time += test->execution_time;
422421

423422
if (test->status == TEST_STATUS_PASS) {
@@ -449,7 +448,7 @@ void fossil_test_summary(fossil_test_env_t *env) {
449448

450449
// Optionally, you could add the total execution time summary here
451450
printf(COLOR_INFO "====================================\n" COLOR_RESET);
452-
printf(COLOR_INFO "Total execution time: %.3f seconds\n" COLOR_RESET, env->total_execution_time / CLOCKS_PER_SEC);
451+
printf(COLOR_INFO "Total execution time: %.3f seconds\n" COLOR_RESET, total_time / CLOCKS_PER_SEC);
453452
printf(COLOR_INFO "====================================\n" COLOR_RESET);
454453

455454
fossil_test_message(env);

0 commit comments

Comments
 (0)