Skip to content

Commit

Permalink
test-ip6: skip ip6 case when CONFIG_NET_IPv6 disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zhhyu7 authored and xiaoxiang781216 committed Dec 26, 2024
1 parent 8d5e1f5 commit f06b85c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test-getnameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ TEST_IMPL(getnameinfo_basic_ip6) {
#if defined(__QEMU__)
RETURN_SKIP("Test does not currently work in QEMU");
#endif
#ifndef CONFIG_NET_IPv6
RETURN_SKIP("Test depends on the CONFIG_NET_IPv6 configuration");
#endif

int r;

Expand Down
3 changes: 3 additions & 0 deletions test/test-ip6-addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ TEST_IMPL(ip6_addr_link_local) {
#if defined(__CYGWIN__) || defined(__MSYS__)
/* FIXME: Does Cygwin support this? */
RETURN_SKIP("FIXME: This test needs more investigation on Cygwin");
#endif
#ifndef CONFIG_NET_IPv6
RETURN_SKIP("Test depends on the CONFIG_NET_IPv6 configuration");
#endif
char string_address[INET6_ADDRSTRLEN];
uv_interface_address_t* addresses;
Expand Down

0 comments on commit f06b85c

Please sign in to comment.