From ca4e77a8b04f6672d7c11b798821932556a4ab51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 31 Jan 2023 17:10:13 +0100 Subject: [PATCH] tests/dbus: Check for error early This gives a detailed error messages whereas checking if `proxy` is `NULL` tells us only that on error. --- tests/test-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-dbus.c b/tests/test-dbus.c index d64de31..f6b9571 100644 --- a/tests/test-dbus.c +++ b/tests/test-dbus.c @@ -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",