Commit f127c8e1 authored by Simon McVittie's avatar Simon McVittie
Browse files

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


Signed-off-by: Simon McVittie's avatarSimon McVittie <>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <>
parent 57a0cf1d
......@@ -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;
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