diff options
author | Simon McVittie <smcv@collabora.com> | 2021-03-26 12:21:45 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-03-26 12:22:14 +0000 |
commit | a23a0a2e65329ee93e960c36ec2aec603fb8fd90 (patch) | |
tree | 57d04256496dd08f1e94b4b6674688155ac353ff /test/core/proxy-peer.c | |
parent | 344e005c7cdf86755f8c014bb87e2bd8123c5116 (diff) | |
download | dbus-glib-a23a0a2e65329ee93e960c36ec2aec603fb8fd90.tar.gz |
test: Replace remaining assertions with g_assert_true()
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/core/proxy-peer.c')
-rw-r--r-- | test/core/proxy-peer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/core/proxy-peer.c b/test/core/proxy-peer.c index 085305b..87d8d0a 100644 --- a/test/core/proxy-peer.c +++ b/test/core/proxy-peer.c @@ -81,7 +81,7 @@ destroy_cb (DBusGProxy *proxy, { Fixture *f = user_data; - g_assert (proxy == f->proxy); + g_assert_true (proxy == f->proxy); f->proxy_destroyed = TRUE; } @@ -124,7 +124,7 @@ setup (Fixture *f, "/org/freedesktop/DBus/GLib/Tests/MyTestObject", "org.freedesktop.DBus.GLib.Tests.MyObject"); g_assert_nonnull (f->proxy); - g_assert (DBUS_IS_G_PROXY (f->proxy)); + g_assert_true (DBUS_IS_G_PROXY (f->proxy)); g_signal_connect (f->proxy, "destroy", G_CALLBACK (destroy_cb), f); @@ -141,7 +141,7 @@ call_cb (DBusGProxy *proxy, gboolean found; found = g_hash_table_remove (f->in_flight, call); - g_assert (found); + g_assert_true (found); g_hash_table_insert (f->completed, call, call); } @@ -165,11 +165,11 @@ test_method (Fixture *f, } ok = g_hash_table_remove (f->completed, call); - g_assert (ok); + g_assert_true (ok); ok = dbus_g_proxy_end_call (f->proxy, call, &error, G_TYPE_INVALID); g_assert_no_error (error); - g_assert (ok); + g_assert_true (ok); } static void |