| ... | @@ -722,6 +722,12 @@ test "Dir.rename directories" { | ... | @@ -722,6 +722,12 @@ test "Dir.rename directories" { |
| 722 | try testing.expectError(error.FileNotFound, ctx.dir.openDir(test_dir_path, .{})); | 722 | try testing.expectError(error.FileNotFound, ctx.dir.openDir(test_dir_path, .{})); |
| 723 | var dir = try ctx.dir.openDir(test_dir_renamed_path, .{}); | 723 | var dir = try ctx.dir.openDir(test_dir_renamed_path, .{}); |
| 724 | | 724 | |
| | 725 | // The next rename in this test can hit intermittent AccessDenied |
| | 726 | // errors when certain conditions are true about the host system. |
| | 727 | // For now, return early when the path type is UNC to avoid them. |
| | 728 | // See https://github.com/ziglang/zig/issues/17134 |
| | 729 | if (ctx.path_type == .unc) return; |
| | 730 | |
| 725 | // Put a file in the directory | 731 | // Put a file in the directory |
| 726 | var file = try dir.createFile("test_file", .{ .read = true }); | 732 | var file = try dir.createFile("test_file", .{ .read = true }); |
| 727 | file.close(); | 733 | file.close(); |