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:
parent
43e256aaff
commit
69678e27c8
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user