summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-04-18 15:40:55 -0400
committerDan Winship <danw@gnome.org>2013-04-18 15:41:51 -0400
commitce2043a7a81d2d8c9fba3b87a03df52df99e4115 (patch)
tree96c4fd3c8c54c3ed15ef3768d10ff35185b37b48 /tests
parent8c5ae3c24c95381b52530ac76a80598bb750c1ef (diff)
downloadlibsoup-ce2043a7a81d2d8c9fba3b87a03df52df99e4115.tar.gz
libsoup-ce2043a7a81d2d8c9fba3b87a03df52df99e4115.tar.bz2
libsoup-ce2043a7a81d2d8c9fba3b87a03df52df99e4115.zip
misc-test: skip the IPv6 server test if there's no IPv6 support
https://bugzilla.gnome.org/show_bug.cgi?id=698220
Diffstat (limited to 'tests')
-rw-r--r--tests/misc-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc-test.c b/tests/misc-test.c
index a9150a11..39ee960b 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);