From 344e005c7cdf86755f8c014bb87e2bd8123c5116 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 26 Mar 2021 12:19:20 +0000 Subject: test: Replace remaining g_assert (!x) with g_assert_false (x) Signed-off-by: Simon McVittie --- test/core/private.c | 2 +- test/core/proxy-peer.c | 2 +- test/core/test-gvariant.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/core/private.c b/test/core/private.c index 7969ce8..01c1c4f 100644 --- a/test/core/private.c +++ b/test/core/private.c @@ -239,7 +239,7 @@ test_timeout (Fixture *f, G_TYPE_INVALID); g_assert_error (error, DBUS_GERROR, DBUS_GERROR_NO_REPLY); - g_assert (!ok); + g_assert_false (ok); g_clear_error (&error); } diff --git a/test/core/proxy-peer.c b/test/core/proxy-peer.c index 656e704..085305b 100644 --- a/test/core/proxy-peer.c +++ b/test/core/proxy-peer.c @@ -192,7 +192,7 @@ test_disconnect (Fixture *f, ok = dbus_g_proxy_end_call (f->proxy, fail, &error, G_TYPE_INVALID); g_assert_error (error, DBUS_GERROR, DBUS_GERROR_DISCONNECTED); - g_assert (!ok); + g_assert_false (ok); g_clear_error (&error); while (!f->proxy_destroyed) diff --git a/test/core/test-gvariant.c b/test/core/test-gvariant.c index 6031afa..f12a46f 100644 --- a/test/core/test-gvariant.c +++ b/test/core/test-gvariant.c @@ -184,7 +184,7 @@ test_simple_not_equiv (void) v1 = g_variant_new_int32 (1982); v2 = g_variant_new_int32 (1984); - g_assert (!test_g_variant_equivalent (v1, v2)); + g_assert_false (test_g_variant_equivalent (v1, v2)); g_variant_unref (v1); g_variant_unref (v2); @@ -209,7 +209,7 @@ test_array_not_equiv (void) g_variant_builder_add (&b, "v", g_variant_new_object_path ("/cats/escher")); v2 = g_variant_builder_end (&b); - g_assert (!test_g_variant_equivalent (v1, v2)); + g_assert_false (test_g_variant_equivalent (v1, v2)); g_variant_unref (v1); g_variant_unref (v2); @@ -259,7 +259,7 @@ test_map_not_equiv1 (void) g_variant_builder_add (&b, "{os}", "/cats/rory", "Rory Cat"); v2 = g_variant_builder_end (&b); - g_assert (!test_g_variant_equivalent (v1, v2)); + g_assert_false (test_g_variant_equivalent (v1, v2)); g_variant_unref (v1); g_variant_unref (v2); @@ -283,7 +283,7 @@ test_map_not_equiv2 (void) g_variant_builder_add (&b, "{os}", "/cats/josh", "Josh Cat"); v2 = g_variant_builder_end (&b); - g_assert (!test_g_variant_equivalent (v1, v2)); + g_assert_false (test_g_variant_equivalent (v1, v2)); g_variant_unref (v1); g_variant_unref (v2); -- cgit v1.2.1