authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2023-09-12 17:35:32-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-13 03:46:00-04:00
log89ea67aee2aeb4c041f55625f22fb9a1c56cf9ea
tree88857bc69aed256a4f57854022e79ab77b1b6541
parentcb6201715a7bcae2b278811186afc17a697b25f7

Disable flaky part of Dir.rename directories test on Windows

See https://github.com/ziglang/zig/issues/17134

1 files changed, 6 insertions(+), 0 deletions(-)

lib/std/fs/test.zig+6
...@@ -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, .{});
724724
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 directory731 // 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();