From bf81666beb7ef2678d0d35676318d784385eb5e1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 19 Dec 2025 16:03:02 -0800 Subject: [PATCH] std.fs.test: don't try to test nonexistent API --- lib/std/fs/test.zig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig index db6a6cccee884ea7748e6cfaa9c5622691d0833b..704805efb979109c5ac0bcf16bca9e845b9d7198 100644 --- a/lib/std/fs/test.zig +++ b/lib/std/fs/test.zig @@ -246,17 +246,9 @@ test "Dir.readLink on non-symlinks" { // file var buffer: [Dir.max_path_bytes]u8 = undefined; try std.testing.expectError(error.NotLink, ctx.dir.readLink(io, file_path, &buffer)); - if (builtin.os.tag == .windows) { - var file_path_w = try std.os.windows.sliceToPrefixedFileW(ctx.dir.handle, file_path); - try std.testing.expectError(error.NotLink, ctx.dir.readLinkW(file_path_w.span(), &file_path_w.data)); - } // dir try std.testing.expectError(error.NotLink, ctx.dir.readLink(io, dir_path, &buffer)); - if (builtin.os.tag == .windows) { - var dir_path_w = try std.os.windows.sliceToPrefixedFileW(ctx.dir.handle, dir_path); - try std.testing.expectError(error.NotLink, ctx.dir.readLinkW(dir_path_w.span(), &dir_path_w.data)); - } } }.impl); } -- 2.54.0