| ... | @@ -19,6 +19,7 @@ const File = std.fs.File; | ... | @@ -19,6 +19,7 @@ const File = std.fs.File; |
| 19 | // first release to support them. | 19 | // first release to support them. |
| 20 | pub const has_unix_sockets = switch (native_os) { | 20 | pub const has_unix_sockets = switch (native_os) { |
| 21 | .windows => builtin.os.version_range.windows.isAtLeast(.win10_rs4) orelse false, | 21 | .windows => builtin.os.version_range.windows.isAtLeast(.win10_rs4) orelse false, |
| | 22 | .wasi => false, |
| 22 | else => true, | 23 | else => true, |
| 23 | }; | 24 | }; |
| 24 | | 25 | |
| ... | @@ -1397,6 +1398,10 @@ fn parseHosts( | ... | @@ -1397,6 +1398,10 @@ fn parseHosts( |
| 1397 | } | 1398 | } |
| 1398 | | 1399 | |
| 1399 | test parseHosts { | 1400 | test parseHosts { |
| | 1401 | if (builtin.os.tag == .wasi) { |
| | 1402 | // TODO parsing addresses should not have OS dependencies |
| | 1403 | return error.SkipZigTest; |
| | 1404 | } |
| 1400 | var reader: std.io.Reader = .fixed( | 1405 | var reader: std.io.Reader = .fixed( |
| 1401 | \\127.0.0.1 localhost | 1406 | \\127.0.0.1 localhost |
| 1402 | \\::1 localhost | 1407 | \\::1 localhost |