]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test-utils: Use TAP syntax to die with a fatal error
authorSimon McVittie <smcv@collabora.com>
Tue, 21 Nov 2017 12:10:01 +0000 (12:10 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 24 Nov 2017 12:19:14 +0000 (12:19 +0000)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103600

test/test-utils.c

index 3f4d195904cf90242761899dafaaaeb2bfbcba30..843fda1ac75ae608cbced56c37ec3d93007c686c 100644 (file)
@@ -156,7 +156,8 @@ static void die (const char *message) _DBUS_GNUC_NORETURN;
 static void
 die (const char *message)
 {
-  fprintf (stderr, "*** %s", message);
+  printf ("Bail out! %s\n", message);
+  fflush (stdout);
   exit (1);
 }