| ... | ... | @@ -49,7 +49,7 @@ test "parse and render IPv6 addresses" { |
| 49 | 49 | try testing.expectError(error.Incomplete, net.Address.parseIp6("FF01:", 0)); |
| 50 | 50 | try testing.expectError(error.InvalidIpv4Mapping, net.Address.parseIp6("::123.123.123.123", 0)); |
| 51 | 51 | // TODO Make this test pass on other operating systems. |
| 52 | | if (builtin.os.tag == .linux or builtin.link_libc) { |
| 52 | if (builtin.os.tag == .linux or comptime builtin.os.tag.isDarwin()) { |
| 53 | 53 | try testing.expectError(error.Incomplete, net.Address.resolveIp6("ff01::fb%", 0)); |
| 54 | 54 | try testing.expectError(error.Overflow, net.Address.resolveIp6("ff01::fb%wlp3s0s0s0s0s0s0s0s0", 0)); |
| 55 | 55 | try testing.expectError(error.Overflow, net.Address.resolveIp6("ff01::fb%12345678901234", 0)); |
| ... | ... | @@ -57,7 +57,7 @@ test "parse and render IPv6 addresses" { |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | test "invalid but parseable IPv6 scope ids" { |
| 60 | | if (builtin.os.tag != .linux or !builtin.link_libc) { |
| 60 | if (builtin.os.tag != .linux or comptime !builtin.os.tag.isDarwin()) { |
| 61 | 61 | // Currently, resolveIp6 with alphanumerical scope IDs only works on Linux. |
| 62 | 62 | // TODO Make this test pass on other operating systems. |
| 63 | 63 | return error.SkipZigTest; |