Commit 565ae9de authored by Simon McVittie's avatar Simon McVittie

test-service, test-shell-service: check what RequestName returned

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231Reviewed-by: Will Thompson's avatarWill Thompson <will.thompson@collabora.co.uk>
parent 2ccbfb82
......@@ -478,6 +478,13 @@ main (int argc,
exit (1);
}
if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
{
fprintf (stderr, "Unable to acquire service: code %d\n", result);
_dbus_verbose ("*** Failed to acquire service: %d\n", result);
exit (1);
}
_dbus_verbose ("*** Test service entering main loop\n");
_dbus_loop_run (loop);
......
......@@ -176,6 +176,13 @@ main (int argc,
exit (1);
}
if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
{
fprintf (stderr, "Unable to acquire service: code %d\n", result);
_dbus_verbose ("*** Failed to acquire service: %d\n", result);
exit (1);
}
_dbus_verbose ("*** Test service entering main loop\n");
_dbus_loop_run (loop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment