Skip to content

Commit d871d77

Browse files
committed
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.
1 parent 9355578 commit d871d77

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/test/net_tests.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,6 @@ BOOST_AUTO_TEST_CASE(cnetaddr_basic)
194194
BOOST_CHECK(!addr.IsBindAny());
195195
BOOST_CHECK_EQUAL(addr.ToStringAddr(), scoped_addr);
196196

197-
// Test that the delimiter "%" and default zone id of 0 can be omitted for the default scope.
198-
addr = LookupHost(link_local + "%0", false).value();
199-
BOOST_REQUIRE(addr.IsValid());
200-
BOOST_REQUIRE(addr.IsIPv6());
201-
BOOST_CHECK(!addr.IsBindAny());
202-
BOOST_CHECK_EQUAL(addr.ToStringAddr(), link_local);
203-
204197
// TORv2, no longer supported
205198
BOOST_CHECK(!addr.SetSpecial("6hzph5hv6337r6p2.onion"));
206199

0 commit comments

Comments
 (0)