test: flush stdout after forking

meson test was not capturing the intended output from the child
process; force a flush to ensure it reaches the test log.

Signed-off-by: John Levon <john.levon@nutanix.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
John Levon 2021-07-26 13:16:27 +01:00 committed by Thomas Monjalon
parent 705e197413
commit b73c8eded7

View File

@ -110,6 +110,7 @@ process_dup(const char *const argv[], int numargs, const char *env_value)
for (i = 0; i < num; i++)
printf("'%s' ", argv_cpy[i]);
printf("\n");
fflush(stdout);
/* set the environment variable */
if (setenv(RECURSIVE_ENV_VAR, env_value, 1) != 0)