From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C1E77A0C47; Mon, 26 Jul 2021 14:16:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5829740F35; Mon, 26 Jul 2021 14:16:37 +0200 (CEST) Received: from sent.movementarian.org (unknown [88.98.93.30]) by mails.dpdk.org (Postfix) with ESMTP id 5709D40DDA for ; Mon, 26 Jul 2021 14:16:35 +0200 (CEST) Received: from jlevon by sent.movementarian.org with local (Exim 4.93) (envelope-from ) id 1m7zX8-009kmc-6M; Mon, 26 Jul 2021 13:16:34 +0100 From: John Levon To: dev@dpdk.org Cc: John Levon Date: Mon, 26 Jul 2021 13:16:27 +0100 Message-Id: <20210726121627.2324730-1-john.levon@nutanix.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] app/test: flush stdout after forking X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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.25.1