mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-17 01:38:25 +02:00
test: Add some OOM paths to the test-pending-call-timeout test
This is mostly pointless, but will shut Coverity up. Coverity ID: 54718 Signed-off-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99724 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
f88c8a8c39
commit
cee80c92b6
1 changed files with 7 additions and 2 deletions
|
|
@ -25,8 +25,13 @@ _method_call (DBusConnection *conn,
|
|||
"org.freedesktop.TestSuite",
|
||||
"DelayEcho");
|
||||
|
||||
dbus_message_append_args (method, DBUS_TYPE_STRING, &echo, NULL);
|
||||
dbus_connection_send_with_reply (conn, method, &pending, timeout_milliseconds);
|
||||
if (method == NULL ||
|
||||
!dbus_message_append_args (method, DBUS_TYPE_STRING, &echo, NULL) ||
|
||||
!dbus_connection_send_with_reply (conn, method, &pending, timeout_milliseconds))
|
||||
{
|
||||
printf ("Bail out! OOM when building and sending message ***\n");
|
||||
exit (1);
|
||||
}
|
||||
dbus_message_unref (method);
|
||||
|
||||
/* block on the message */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue