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>
(cherry picked from commit
f127c8e110faed76039f96dbc53a87f093fea312)
[smcv: Adjust for older codebase]
g_assert (ok);
g_assert (dbus_bus_get_unique_name (conn) != NULL);
- test_connection_setup (ctx, conn);
+ if (ctx != NULL)
+ test_connection_setup (ctx, conn);
+
return conn;
}