test: skip early bind tests if no IPv6 is supported
PR-URL: https://github.com/libuv/libuv/pull/814 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
4aeed1ac13
commit
7acb6bd843
@ -139,6 +139,9 @@ TEST_IMPL(tcp_create_early_bad_bind) {
|
||||
uv_os_fd_t fd;
|
||||
int r;
|
||||
|
||||
if (!can_ipv6())
|
||||
RETURN_SKIP("IPv6 not supported");
|
||||
|
||||
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
|
||||
|
||||
r = uv_tcp_init_ex(uv_default_loop(), &client, AF_INET6);
|
||||
|
||||
@ -79,6 +79,9 @@ TEST_IMPL(udp_create_early_bad_bind) {
|
||||
uv_os_fd_t fd;
|
||||
int r;
|
||||
|
||||
if (!can_ipv6())
|
||||
RETURN_SKIP("IPv6 not supported");
|
||||
|
||||
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
|
||||
|
||||
r = uv_udp_init_ex(uv_default_loop(), &client, AF_INET6);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user