| ... | @@ -246,17 +246,9 @@ test "Dir.readLink on non-symlinks" { | ... | @@ -246,17 +246,9 @@ test "Dir.readLink on non-symlinks" { |
| 246 | // file | 246 | // file |
| 247 | var buffer: [Dir.max_path_bytes]u8 = undefined; | 247 | var buffer: [Dir.max_path_bytes]u8 = undefined; |
| 248 | try std.testing.expectError(error.NotLink, ctx.dir.readLink(io, file_path, &buffer)); | 248 | try std.testing.expectError(error.NotLink, ctx.dir.readLink(io, file_path, &buffer)); |
| 249 | if (builtin.os.tag == .windows) { | | |
| 250 | var file_path_w = try std.os.windows.sliceToPrefixedFileW(ctx.dir.handle, file_path); | | |
| 251 | try std.testing.expectError(error.NotLink, ctx.dir.readLinkW(file_path_w.span(), &file_path_w.data)); | | |
| 252 | } | | |
| 253 | | 249 | |
| 254 | // dir | 250 | // dir |
| 255 | try std.testing.expectError(error.NotLink, ctx.dir.readLink(io, dir_path, &buffer)); | 251 | try std.testing.expectError(error.NotLink, ctx.dir.readLink(io, dir_path, &buffer)); |
| 256 | if (builtin.os.tag == .windows) { | | |
| 257 | var dir_path_w = try std.os.windows.sliceToPrefixedFileW(ctx.dir.handle, dir_path); | | |
| 258 | try std.testing.expectError(error.NotLink, ctx.dir.readLinkW(dir_path_w.span(), &dir_path_w.data)); | | |
| 259 | } | | |
| 260 | } | 252 | } |
| 261 | }.impl); | 253 | }.impl); |
| 262 | } | 254 | } |