From: John Levon Date: Mon, 26 Jul 2021 12:16:27 +0000 (+0100) Subject: test: flush stdout after forking X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b73c8eded7da56c8689fee15007f632fb5825c10;p=dpdk.git 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 Acked-by: Bruce Richardson --- diff --git a/app/test/process.h b/app/test/process.h index a09a088477..0ed91a939e 100644 --- a/app/test/process.h +++ b/app/test/process.h @@ -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)