Skip to content

Commit

Permalink
Flush stdout and stderr before abort().
Browse files Browse the repository at this point in the history
Fixes #62.
  • Loading branch information
mity committed Dec 27, 2023
1 parent 5f7354d commit 78a803a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/acutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,8 @@ acutest_abort_(void)
} else {
if(acutest_current_test_ != NULL)
acutest_fini_(acutest_current_test_->name);
fflush(stdout);
fflush(stderr);
abort();
}
}
Expand Down

0 comments on commit 78a803a

Please sign in to comment.