Subject: | POE::Wheel IPv6 test failures on Cygwin |
Socket6.pm will install on Cygwin even though it is not currently capable of doing IPv6. The following patch to tests/30_loops/00_base/wheel_sf_ipv6.pm skips these tests on Cygwin if Socket6 is installed. With this patch, all the IPv6 are skipped if Socket6 is installed.
$ diff -u tests/30_loops/00_base/wheel_sf_ipv6.pm.orig tests/30_loops/00_base/wheel_sf_ipv6.pm
--- tests/30_loops/00_base/wheel_sf_ipv6.pm.orig 2005-01-18 11:39:58.816403200 -0600
+++ tests/30_loops/00_base/wheel_sf_ipv6.pm 2005-01-18 11:47:04.668748800 -0600
@@ -16,6 +16,9 @@
if ( length($@) or not exists($INC{"Socket6.pm"}) ) {
$error = "Socket6 is needed for IPv6 tests";
}
+ elsif ( exists($INC{"Socket6.pm"}) && $^O eq "cygwin" ) {
+ $error = "IPv6 is not available on Cygwin even if Socket 6 is installed";
+ }
else {
my $addr = Socket6::inet_pton(&Socket6::AF_INET6, "::1");
unless (defined $addr) {