summaryrefslogtreecommitdiff
path: root/lib/subunit/c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-08-27 16:07:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-08-27 16:07:38 +0200
commitbd01a8e79faa3d657f01529c063cd0e09d711880 (patch)
tree35eb747f2d46b51997303f40a7ab1e411cb6a410 /lib/subunit/c
parentdd56d27d74ad702803818237a2732d1e99b14da1 (diff)
downloadsamba-bd01a8e79faa3d657f01529c063cd0e09d711880.tar.gz
samba-bd01a8e79faa3d657f01529c063cd0e09d711880.tar.bz2
samba-bd01a8e79faa3d657f01529c063cd0e09d711880.zip
subunit: Update to latest upstream snapshot.
Diffstat (limited to 'lib/subunit/c')
-rw-r--r--lib/subunit/c/tests/test_child.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/subunit/c/tests/test_child.c b/lib/subunit/c/tests/test_child.c
index 0744599b9f..1318322ab2 100644
--- a/lib/subunit/c/tests/test_child.c
+++ b/lib/subunit/c/tests/test_child.c
@@ -16,6 +16,7 @@
**/
#include <stdlib.h>
+#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <check.h>
@@ -57,6 +58,8 @@ test_stdout_function(char const * expected,
* DEAL.
*/
function();
+ /* flush writes on FILE object to file descriptor */
+ fflush(stdout);
/* restore stdout now */
if (dup2(old_stdout, 1) != 1) {
close(old_stdout);