From 132c6ba0cfdd1b83254bfb82d2a49e1028ce0c74 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 15 Mar 2019 13:46:29 +0000 Subject: [PATCH] tests: Use g_assert_*() instead of g_assert() in gdbus-addresses test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit g_assert_*() give better failure messages, and don’t get compiled out with G_DISABLE_ASSERT. Signed-off-by: Philip Withnall --- gio/tests/gdbus-addresses.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gio/tests/gdbus-addresses.c b/gio/tests/gdbus-addresses.c index 0ab05661a..febfe9073 100644 --- a/gio/tests/gdbus-addresses.c +++ b/gio/tests/gdbus-addresses.c @@ -67,14 +67,14 @@ test_unix_address (void) assert_not_supported_address ("some-imaginary-transport:foo=bar"); assert_is_supported_address ("unix:path=/tmp/dbus-test"); assert_is_supported_address ("unix:abstract=/tmp/dbus-another-test"); - g_assert (g_dbus_is_address ("unix:foo=bar")); + g_assert_true (g_dbus_is_address ("unix:foo=bar")); assert_not_supported_address ("unix:foo=bar"); - g_assert (!g_dbus_is_address ("unix:path=/foo;abstract=/bar")); + g_assert_false (g_dbus_is_address ("unix:path=/foo;abstract=/bar")); assert_not_supported_address ("unix:path=/foo;abstract=/bar"); assert_is_supported_address ("unix:path=/tmp/concrete;unix:abstract=/tmp/abstract"); - g_assert (g_dbus_is_address ("some-imaginary-transport:foo=bar")); + g_assert_true (g_dbus_is_address ("some-imaginary-transport:foo=bar")); - g_assert (g_dbus_is_address ("some-imaginary-transport:foo=bar;unix:path=/this/is/valid")); + g_assert_true (g_dbus_is_address ("some-imaginary-transport:foo=bar;unix:path=/this/is/valid")); assert_not_supported_address ("some-imaginary-transport:foo=bar;unix:path=/this/is/valid"); } #endif