Skip to content

Commit

Permalink
test: Remove non-portable IPv6 test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hebasto committed Dec 30, 2024
1 parent 9355578 commit d871d77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/test/net_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit d871d77

Please sign in to comment.