From 5236a14c9d5b98c9525b2361eca0c4e06630476b Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sat, 13 Jan 2024 16:15:02 +0100 Subject: [PATCH] Tests: flush stderr before exit --- src/testlo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/testlo.c b/src/testlo.c index 2d6be38..415d349 100644 --- a/src/testlo.c +++ b/src/testlo.c @@ -60,6 +60,7 @@ #define TEST(cond) if (!(cond)) { fprintf(stderr, "FAILED " #cond \ " at %s:%d\n", __FILE__, __LINE__); \ + fflush(stderr); \ exit(1); } \ else { printf("passed " #cond "\n"); }