[glib: 1/13] tests: Use g_assert_*() instead of g_assert() in gdbus-addresses test
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/13] tests: Use g_assert_*() instead of g_assert() in gdbus-addresses test
- Date: Tue, 19 Mar 2019 10:54:01 +0000 (UTC)
commit 132c6ba0cfdd1b83254bfb82d2a49e1028ce0c74
Author: Philip Withnall <withnall endlessm com>
Date: Fri Mar 15 13:46:29 2019 +0000
tests: Use g_assert_*() instead of g_assert() in gdbus-addresses test
g_assert_*() give better failure messages, and don’t get compiled out
with G_DISABLE_ASSERT.
Signed-off-by: Philip Withnall <withnall endlessm com>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]