]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
_dbus_test_diag: Flush stdout after each diagnostic
authorSimon McVittie <smcv@collabora.com>
Wed, 15 Nov 2017 12:14:16 +0000 (12:14 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 15 Nov 2017 13:18:22 +0000 (13:18 +0000)
If we crash, we'll want to know what the most recent diagnostic was.

Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601

dbus/dbus-test-tap.c

index 710e5eb87006771f83c81e5d398470240a44f2e5..b728fa11605c876bffc5631649cc271a84dacc2c 100644 (file)
@@ -75,6 +75,7 @@ _dbus_test_diag (const char *format,
   vprintf (format, ap);
   va_end (ap);
   printf ("\n");
+  fflush (stdout);
 }
 
 /*