summaryrefslogtreecommitdiffstats
path: root/0001-skip-test-if-localhost-doesn-t-resolve-as-IPv6.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-skip-test-if-localhost-doesn-t-resolve-as-IPv6.patch')
-rw-r--r--0001-skip-test-if-localhost-doesn-t-resolve-as-IPv6.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/0001-skip-test-if-localhost-doesn-t-resolve-as-IPv6.patch b/0001-skip-test-if-localhost-doesn-t-resolve-as-IPv6.patch
new file mode 100644
index 0000000..66f11b8
--- /dev/null
+++ b/0001-skip-test-if-localhost-doesn-t-resolve-as-IPv6.patch
@@ -0,0 +1,24 @@
+From 610c661364a443978729abbfd8fd62f3a36d22c7 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 3 Apr 2018 12:45:17 +0200
+Subject: [PATCH] skip test if localhost doesn't resolve as IPv6
+
+---
+ tests/bug00998-ipv6_localhost.phpt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/bug00998-ipv6_localhost.phpt b/tests/bug00998-ipv6_localhost.phpt
+index fe471f7a..b6b2b51f 100644
+--- a/tests/bug00998-ipv6_localhost.phpt
++++ b/tests/bug00998-ipv6_localhost.phpt
+@@ -6,6 +6,7 @@ if (getenv("SKIP_IPV6_TESTS")) { exit("skip Excluding IPv6 tests"); }
+ if (getenv("SKIP_DBGP_TESTS")) { exit("skip Excluding DBGp tests"); }
+ require 'dbgp/dbgpclient.php';
+ if (!DebugClientIPv6::isSupported($errno, $errstr)) echo "skip IPv6 support is not configured. Error: $errstr, errno: $errno\n";
++if (strstr(exec("getent ahostsv6 localhost"), '::1')===false) echo "skip localhost doesn't resolve as IPv6";
+ ?>
+ --FILE--
+ <?php
+--
+2.14.3
+