From 08cf6a53962448a54cba11bea8d49fbe128276a9 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Mon, 22 Mar 2021 20:35:42 +0100 Subject: [PATCH] Flush stderr after parsing This helps test cases find consistent output on all platforms --- src/parsing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parsing.c b/src/parsing.c index c76db70..aa6ff57 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -24,6 +24,7 @@ #include "config.h" #include +#include #include #include #include @@ -305,6 +306,8 @@ design_t *parse_config_files(const char *p_first_config_file, size_t *r_num_desi } return NULL; } + + fflush(stderr); /* ensure order of error msgs and normal output for test cases */ return result; }