From be1ed4529ea7894a05f8c7a3f79bc0aff755c3ab Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Mon, 16 Dec 2024 10:36:32 +0800 Subject: [PATCH] test-ip6: skip ip6 case when CONFIG_NET_IPv6 disabled --- test/test-getnameinfo.c | 3 +++ test/test-ip6-addr.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/test-getnameinfo.c b/test/test-getnameinfo.c index cea57b012..bcc07e6bf 100644 --- a/test/test-getnameinfo.c +++ b/test/test-getnameinfo.c @@ -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; diff --git a/test/test-ip6-addr.c b/test/test-ip6-addr.c index 8f0c18601..8b28ad8ef 100644 --- a/test/test-ip6-addr.c +++ b/test/test-ip6-addr.c @@ -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;