summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
Diffstat (limited to 'runner')
-rw-r--r--runner/executor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c
index d72a5937..1b69f9c5 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -872,6 +872,9 @@ static int monitor_output(pid_t child,
!memcmp(outbuf, STARTING_SUBTEST, strlen(STARTING_SUBTEST))) {
write(outputs[_F_JOURNAL], outbuf + strlen(STARTING_SUBTEST),
linelen - strlen(STARTING_SUBTEST));
+ if (settings->sync) {
+ fdatasync(outputs[_F_JOURNAL]);
+ }
memcpy(current_subtest, outbuf + strlen(STARTING_SUBTEST),
linelen - strlen(STARTING_SUBTEST));
current_subtest[linelen - strlen(STARTING_SUBTEST)] = '\0';