Skip to content

Commit

Permalink
Update unittest.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-coding authored Jun 12, 2024
1 parent b11970d commit c52e5c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/source/unittest/unittest.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,16 +375,15 @@ int fossil_test_environment_summary(void) {
// if (env == xnullptr) {
// return -1;
// }
fossil_test_io_summary_ended();
int result = (_TEST_ENV.stats.expected_failed_count +
_TEST_ENV.stats.unexpected_failed_count +
_TEST_ENV.stats.unexpected_passed_count +
_TEST_ENV.stats.expected_timeout_count +
_TEST_ENV.stats.untested_count);

fossil_test_io_summary_ended();
fossil_test_environment_erase();

return !result;
return result;
}

// Function to add a test to the test environment
Expand Down

0 comments on commit c52e5c7

Please sign in to comment.