summaryrefslogtreecommitdiff
path: root/test/name-test/test-pending-call-timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/name-test/test-pending-call-timeout.c')
-rw-r--r--test/name-test/test-pending-call-timeout.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/name-test/test-pending-call-timeout.c b/test/name-test/test-pending-call-timeout.c
index d051faba..be6b849c 100644
--- a/test/name-test/test-pending-call-timeout.c
+++ b/test/name-test/test-pending-call-timeout.c
@@ -39,13 +39,13 @@ _method_call (DBusConnection *conn,
if (reply == NULL)
{
- printf ("Failed: Reply is NULL ***\n");
+ printf ("Bail out! Reply is NULL ***\n");
exit (1);
}
if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
{
- printf ("Failed: Reply is error: %s ***\n", dbus_message_get_error_name (reply));
+ printf ("Bail out! Reply is error: %s ***\n", dbus_message_get_error_name (reply));
exit (1);
}
@@ -61,6 +61,7 @@ _run_iteration (DBusConnection *conn)
_method_call (conn, INT_MAX);
}
+/* This test outputs TAP syntax: http://testanything.org/ */
int
main (int argc, char *argv[])
{
@@ -71,7 +72,7 @@ main (int argc, char *argv[])
DBusConnection *conn;
DBusError error;
- printf ("*** Testing pending call timeouts\n");
+ printf ("# Testing pending call timeouts\n");
dbus_error_init (&error);
@@ -88,7 +89,7 @@ main (int argc, char *argv[])
/* we just care about seconds */
delta = end_tv_sec - start_tv_sec;
- printf ("Iter %i: %lis\n", i, delta);
+ printf ("ok %d - %lis\n", i + 1, delta);
}
method = dbus_message_new_method_call ("org.freedesktop.TestSuiteEchoService",
@@ -98,6 +99,6 @@ main (int argc, char *argv[])
dbus_connection_send (conn, method, NULL);
dbus_message_unref (method);
- printf ("Success ***\n");
+ printf ("# Testing completed\n1..%d\n", i);
exit (0);
}