summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
Diffstat (limited to 'runner')
-rw-r--r--runner/executor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c
index 701ca80d..fd262eb4 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -780,6 +780,14 @@ static int execute_entry(size_t idx,
printf("\n");
}
+ /*
+ * Flush outputs before forking so our (buffered) output won't
+ * end up in the test outputs.
+ */
+
+ fflush(stdout);
+ fflush(stderr);
+
if ((child = fork())) {
int outfd = outpipe[0];
int errfd = errpipe[0];