blob: cc71213adc8e737349947e16c2e5cce161621265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From ce2043a7a81d2d8c9fba3b87a03df52df99e4115 Mon Sep 17 00:00:00 2001
From: Dan Winship <danw@gnome.org>
Date: Thu, 18 Apr 2013 15:40:55 -0400
Subject: [PATCH] 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 file changed, 5 insertions(+)
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);
--
1.8.1.4
|