authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-10-27 08:29:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-10-29 06:20:51-07:00
logf9de83c90ee7bcc13e78f0998ae1a9a46bbeb67e
treee26417b39b61cb8285f0a00df8e85d48e02130dd
parentf6c5525c8476a1a11c7ebbcdca764010eb10f9a6

std.Io.net: skip testing netInterfaceNameResolve on Windows

let's handle this in a follow-up change. implementation needs to use ConvertInterfaceNameToLuidW and the additional dependency on Iphlpapi.dll poses some challenges.

1 files changed, 2 insertions(+), 4 deletions(-)

lib/std/Io/net/test.zig+2-4
...@@ -86,10 +86,8 @@ test "IPv6 address parse failures" {...@@ -86,10 +86,8 @@ test "IPv6 address parse failures" {
86test "invalid but parseable IPv6 scope ids" {86test "invalid but parseable IPv6 scope ids" {
87 const io = testing.io;87 const io = testing.io;
8888
89 if (builtin.os.tag != .linux and comptime !builtin.os.tag.isDarwin() and builtin.os.tag != .windows) {89 if (builtin.os.tag != .linux and comptime !builtin.os.tag.isDarwin()) {
90 // Currently, resolveIp6 with alphanumerical scope IDs only works on Linux.90 return error.SkipZigTest; // TODO
91 // TODO Make this test pass on other operating systems.
92 return error.SkipZigTest;
93 }91 }
9492
95 try testing.expectError(error.InterfaceNotFound, net.IpAddress.resolveIp6(io, "ff01::fb%123s45678901234", 0));93 try testing.expectError(error.InterfaceNotFound, net.IpAddress.resolveIp6(io, "ff01::fb%123s45678901234", 0));