Subject: | [PATCH] fix a test for cross toolchain |
I work with Buildroot (http://buildroot.net/) which build embedded Linux system.
With some cross toolchain gcc (Sourcery CodeBench x86, ARM),
15io-socket.t requires the attached patch.
Note: I take the trick (disable AI_ADDRCONFIG) in other tests
04local-client-v6.t and 05local-server-v6.t
Subject: | 0001-fix-for-cross-toolchain.patch |
fix for cross toolchain
diff --git a/t/15io-socket.t b/t/15io-socket.t
index 8acc9a7..4db70dc 100644
--- a/t/15io-socket.t
+++ b/t/15io-socket.t
@@ -15,6 +15,7 @@ use IO::Socket::IP -register;
Type => SOCK_STREAM,
LocalHost => "127.0.0.1",
LocalPort => 0,
+ GetAddrInfoFlags => 0, # disable AI_ADDRCONFIG
);
isa_ok( $sock, "IO::Socket::IP", 'IO::Socket->new( Domain => AF_INET )' ) or