@@ -74,15 +74,15 @@ test "parse and render IPv6 addresses" {
74
74
try testing .expectError (error .InvalidIpv4Mapping , net .Address .parseIp6 ("::123.123.123.123" , 0 ));
75
75
try testing .expectError (error .Incomplete , net .Address .parseIp6 ("1" , 0 ));
76
76
// TODO Make this test pass on other operating systems.
77
- if (builtin .os .tag == .linux or comptime builtin .os .tag .isDarwin ()) {
77
+ if (builtin .os .tag == .linux or comptime builtin .os .tag .isDarwin () or builtin . os . tag == .windows ) {
78
78
try testing .expectError (error .Incomplete , net .Address .resolveIp6 ("ff01::fb%" , 0 ));
79
79
try testing .expectError (error .Overflow , net .Address .resolveIp6 ("ff01::fb%wlp3s0s0s0s0s0s0s0s0" , 0 ));
80
80
try testing .expectError (error .Overflow , net .Address .resolveIp6 ("ff01::fb%12345678901234" , 0 ));
81
81
}
82
82
}
83
83
84
84
test "invalid but parseable IPv6 scope ids" {
85
- if (builtin .os .tag != .linux and comptime ! builtin .os .tag .isDarwin ()) {
85
+ if (builtin .os .tag != .linux and comptime ! builtin .os .tag .isDarwin () and builtin . os . tag != .windows ) {
86
86
// Currently, resolveIp6 with alphanumerical scope IDs only works on Linux.
87
87
// TODO Make this test pass on other operating systems.
88
88
return error .SkipZigTest ;
@@ -206,7 +206,7 @@ test "listen on a port, send bytes, receive bytes" {
206
206
}
207
207
208
208
test "listen on an in use port" {
209
- if (builtin .os .tag != .linux and comptime ! builtin .os .tag .isDarwin ()) {
209
+ if (builtin .os .tag != .linux and comptime ! builtin .os .tag .isDarwin () and builtin . os . tag != .windows ) {
210
210
// TODO build abstractions for other operating systems
211
211
return error .SkipZigTest ;
212
212
}
0 commit comments