From 78a803a3110fd0983b6e153a46f32f823e88ebb5 Mon Sep 17 00:00:00 2001 From: Martin Mitas Date: Wed, 27 Dec 2023 22:46:57 +0100 Subject: [PATCH] Flush stdout and stderr before abort(). Fixes #62. --- include/acutest.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/acutest.h b/include/acutest.h index 801e8ff..7d8c849 100644 --- a/include/acutest.h +++ b/include/acutest.h @@ -871,6 +871,8 @@ acutest_abort_(void) } else { if(acutest_current_test_ != NULL) acutest_fini_(acutest_current_test_->name); + fflush(stdout); + fflush(stderr); abort(); } }