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