From b73c8eded7da56c8689fee15007f632fb5825c10 Mon Sep 17 00:00:00 2001 From: John Levon Date: Mon, 26 Jul 2021 13:16:27 +0100 Subject: [PATCH] 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 --- app/test/process.h | 1 + 1 file changed, 1 insertion(+) 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) -- 2.20.1