summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-11-21 12:10:01 +0000
committerSimon McVittie <smcv@collabora.com>2017-11-24 12:19:14 +0000
commitd96da8149a105b2bd037c11991138a677035859a (patch)
tree58b90f1afa679088bc6bac7bb1fd72a76f2cc37d
parent9baff7044e58fa70f89737b632960cfc3f5efbdf (diff)
test-utils: Use TAP syntax to die with a fatal error
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
-rw-r--r--test/test-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-utils.c b/test/test-utils.c
index 3f4d1959..843fda1a 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -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);
}