zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 0d32f4acf715bfe053890a86de1acba47cdb1ddb (tree)
parent 58fb5b29b690dd868c7f69631fe59eae48fc9f4b
Author: Jonathan Marler <johnnymarler@gmail.com>
Date:   Sun, 31 May 2020 11:58:50 -0600

enable dns test on windows

Diffstat:
Mlib/std/net/test.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/std/net/test.zig b/lib/std/net/test.zig @@ -68,7 +68,10 @@ test "parse and render IPv4 addresses" { } test "resolve DNS" { - if (builtin.os.tag == .windows or builtin.os.tag == .wasi) { + if (std.builtin.os.tag == .windows) { + _ = try std.os.windows.WSAStartup(2, 2); + } + if (builtin.os.tag == .wasi) { // DNS resolution not implemented on Windows yet. return error.SkipZigTest; }