mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-04 23:30:33 +01:00
test_try_connect_to_bus: Allow skipping the use of a DBusLoop
DBusLoop isn't thread-safe, so we can't use it to test multi-threaded situations. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=102839 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
57a0cf1d14
commit
f127c8e110
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ test_try_connect_to_bus (TestMainContext *ctx,
|
|||
|
||||
g_assert (dbus_bus_get_unique_name (conn) != NULL);
|
||||
|
||||
if (!test_connection_try_setup (ctx, conn))
|
||||
if (ctx != NULL && !test_connection_try_setup (ctx, conn))
|
||||
{
|
||||
_DBUS_SET_OOM (&error);
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue