[libsoup/gnome-3-8] misc-test: skip the IPv6 server test if there's no IPv6 support
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/gnome-3-8] misc-test: skip the IPv6 server test if there's no IPv6 support
- Date: Wed, 24 Apr 2013 20:08:04 +0000 (UTC)
commit 46f40a5e422b712fea4413f596af89998723bd87
Author: Dan Winship <danw gnome org>
Date: Thu Apr 18 15:40:55 2013 -0400
misc-test: skip the IPv6 server test if there's no IPv6 support
https://bugzilla.gnome.org/show_bug.cgi?id=698220
tests/misc-test.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/misc-test.c b/tests/misc-test.c
index a9150a1..39ee960 100644
--- a/tests/misc-test.c
+++ b/tests/misc-test.c
@@ -1110,6 +1110,11 @@ do_ipv6_test (void)
ipv6_server = soup_server_new (SOUP_SERVER_INTERFACE, ipv6_addr,
NULL);
g_object_unref (ipv6_addr);
+ if (!ipv6_server) {
+ debug_printf (1, " skipping due to lack of IPv6 support\n");
+ return;
+ }
+
soup_server_add_handler (ipv6_server, NULL, ipv6_server_callback, NULL, NULL);
soup_server_run_async (ipv6_server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]