Flush stderr after parsing

This helps test cases find consistent output on all platforms
This commit is contained in:
Thomas Jensen 2021-03-22 20:35:42 +01:00
parent 157f4a136b
commit 08cf6a5396
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
@ -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;
}