1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-28 16:09:29 +00:00

tests/dbus: Check for error early

This gives a detailed error messages whereas checking if `proxy`
is `NULL` tells us only that on error.
This commit is contained in:
Guido Günther 2023-01-31 17:10:13 +01:00 committed by Evangelos Ribeiro Tzaras
parent 8a4a7c6131
commit ca4e77a8b0

View file

@ -31,8 +31,8 @@ find_pid_by_bus_name (const char *name)
g_autoptr (GVariant) ret = NULL;
guint32 pid;
g_assert_nonnull (proxy);
g_assert_no_error (error);
g_assert_nonnull (proxy);
ret = g_dbus_proxy_call_sync (proxy,
"GetConnectionUnixProcessID",