test: skip udp_options6 if there no IPv6 support

PR-URL: https://github.com/libuv/libuv/pull/115
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Saúl Ibarra Corretgé 2015-01-05 12:16:35 +01:00
parent 43e256aaff
commit 69678e27c8

View File

@ -96,6 +96,9 @@ TEST_IMPL(udp_options) {
TEST_IMPL(udp_options6) {
struct sockaddr_in6 addr;
if (!can_ipv6())
RETURN_SKIP("IPv6 not supported");
ASSERT(0 == uv_ip6_addr("::", TEST_PORT, &addr));
return udp_options_test((const struct sockaddr*) &addr);
}