mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-09 04:58:02 +02:00
test_try_connect_to_bus: Cope with OOM while setting up connection
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100317 Reviewed-by: Philip Withnall <withnall@endlessm.com> Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
d5d7d09979
commit
929c15c797
1 changed files with 6 additions and 1 deletions
|
|
@ -346,7 +346,12 @@ test_try_connect_to_bus (TestMainContext *ctx,
|
|||
|
||||
g_assert (dbus_bus_get_unique_name (conn) != NULL);
|
||||
|
||||
test_connection_setup (ctx, conn);
|
||||
if (!test_connection_setup (ctx, conn))
|
||||
{
|
||||
_DBUS_SET_OOM (&error);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
return conn;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue