Skip to content

Commit

Permalink
test: skip tests when ipv6 is not available (libuv#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno authored Sep 26, 2023
1 parent c811169 commit d277f71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-tcp-connect6-error.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ TEST_IMPL(tcp_connect6_error_fault) {
int r;
uv_connect_t req;

if (!can_ipv6())
RETURN_SKIP("IPv6 not supported");

garbage_addr = (const struct sockaddr_in6*) &garbage;

r = uv_tcp_init(uv_default_loop(), &server);
Expand Down Expand Up @@ -76,6 +79,9 @@ TEST_IMPL(tcp_connect6_link_local) {
uv_connect_t req;
uv_tcp_t server;

if (!can_ipv6())
RETURN_SKIP("IPv6 not supported");

#if defined(__QEMU__)
/* qemu's sockaddr_in6 translation is broken pre-qemu 8.0.0
* when host endianness != guest endiannes.
Expand Down

0 comments on commit d277f71

Please sign in to comment.