[glib] Improve test coverage for unix socket addresses
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Improve test coverage for unix socket addresses
- Date: Sun, 19 Aug 2012 06:27:56 +0000 (UTC)
commit cc5d7ccdba6e46548a1e895db1d8dab3409278b8
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 19 02:26:05 2012 -0400
Improve test coverage for unix socket addresses
gio/tests/unix-fd.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/unix-fd.c b/gio/tests/unix-fd.c
index 666c1a2..02a63ca 100644
--- a/gio/tests/unix-fd.c
+++ b/gio/tests/unix-fd.c
@@ -158,6 +158,10 @@ test_fds (void)
g_assert_cmpint (g_unix_socket_address_get_address_type (G_UNIX_SOCKET_ADDRESS (addr)), ==, G_UNIX_SOCKET_ADDRESS_ANONYMOUS);
g_assert_cmpint (g_unix_socket_address_get_path_len (G_UNIX_SOCKET_ADDRESS (addr)), ==, 0);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ g_assert (!g_unix_socket_address_get_is_abstract (G_UNIX_SOCKET_ADDRESS (addr)));
+G_GNUC_END_IGNORE_DEPRECATIONS
+
g_object_get (addr,
"path", &path,
"path-as-array", &array,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]