diff options
author | Simon McVittie <smcv@collabora.com> | 2021-03-26 12:07:50 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-03-26 12:07:50 +0000 |
commit | 0cf441eb0ec42a7e9444932329b4fa954669d8cb (patch) | |
tree | 943bbced912b6dac777d770b5c89694895ef4918 /test/core/test-dbus-glib.c | |
parent | c93990ce8ef79e569e7d70b5ed6c29090bb33b5c (diff) | |
download | dbus-glib-0cf441eb0ec42a7e9444932329b4fa954669d8cb.tar.gz |
test: Replace g_assert (x == NULL) with g_assert_null (x)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/core/test-dbus-glib.c')
-rw-r--r-- | test/core/test-dbus-glib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/test-dbus-glib.c b/test/core/test-dbus-glib.c index 0910ccb..0d84310 100644 --- a/test/core/test-dbus-glib.c +++ b/test/core/test-dbus-glib.c @@ -273,7 +273,7 @@ echo_received_cb (DBusGProxy *proxy, char *echo_data; g_assert (call == echo_call); - g_assert (data == NULL); + g_assert_null (data); error = NULL; echo_data = NULL; @@ -604,7 +604,7 @@ main (int argc, char **argv) g_print (" %s\n", name_list[i]); ++i; } - g_assert (name_list[i] == NULL); + g_assert_null (name_list[i]); g_strfreev (name_list); @@ -2278,7 +2278,7 @@ main (int argc, char **argv) /* Now, call disable_legacy_property_access */ - g_assert (proxy == NULL); + g_assert_null (proxy); proxy = dbus_g_proxy_new_for_name_owner (connection, "org.freedesktop.DBus.GLib.TestService", "/org/freedesktop/DBus/GLib/Tests/MyTestObject", |