DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/test: flush stdout after forking
@ 2021-07-26 12:16 John Levon
  2021-07-26 12:27 ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: John Levon @ 2021-07-26 12:16 UTC (permalink / raw)
  To: dev; +Cc: John Levon

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>
---
 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-31 17:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 12:16 [dpdk-dev] [PATCH] app/test: flush stdout after forking John Levon
2021-07-26 12:27 ` Bruce Richardson
2021-07-26 12:33   ` John Levon
2021-07-31 17:44   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).