commit bf81666beb7ef2678d0d35676318d784385eb5e1 (tree)
parent 88110139fefb844ff774ba71614139286cf8da99
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 19 Dec 2025 16:03:02 -0800
std.fs.test: don't try to test nonexistent API
Diffstat:
1 file changed, 0 insertions(+), 8 deletions(-)
diff --git 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);
}