From d871d778251c35fd55d420ecf5c278f3edfea227 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:08:56 +0000 Subject: [PATCH] test: Remove non-portable IPv6 test On Illumos-based systems, such as OpenIndiana and SmartOS, the assumption that "the default zone ID of 0 can be omitted for the default scope" is incorrect. As a result, `getaddrinfo("fe80::1%0", ...)` returns the `EAI_NONAME` error. See: https://www.illumos.org/man/3SOCKET/getaddrinfo. --- src/test/net_tests.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index 384b1d7cc92..979fa00b48c 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -194,13 +194,6 @@ BOOST_AUTO_TEST_CASE(cnetaddr_basic) BOOST_CHECK(!addr.IsBindAny()); BOOST_CHECK_EQUAL(addr.ToStringAddr(), scoped_addr); - // Test that the delimiter "%" and default zone id of 0 can be omitted for the default scope. - addr = LookupHost(link_local + "%0", false).value(); - BOOST_REQUIRE(addr.IsValid()); - BOOST_REQUIRE(addr.IsIPv6()); - BOOST_CHECK(!addr.IsBindAny()); - BOOST_CHECK_EQUAL(addr.ToStringAddr(), link_local); - // TORv2, no longer supported BOOST_CHECK(!addr.SetSpecial("6hzph5hv6337r6p2.onion"));