You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test fails on Windows when run with -target aarch64-windows-gnu on other platforms and on Windows without target flag passes.
Created file is not closed and then in tmp.cleanup() deleteTree loops in trying to delete that file.
Closing created file makes test pass.
Removing line tmp.dir.close() also makes test pass without closing file.
test"not closing file" {
vartmp=std.testing.tmpDir(.{});
// This file is not closed !!!_=trytmp.dir.createFile("file1", .{ .exclusive=true });
// Next lines are from tmp.cleanup();tmp.dir.close();
// This produces endless looptmp.parent_dir.deleteTree(&tmp.sub_path) catch {};
tmp.parent_dir.close();
}
Expected Behavior
deleteTree should return an error instead of trying forever to delete the same file.
The text was updated successfully, but these errors were encountered:
ianic
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Mar 9, 2024
When run with -target aarch64-windows-gnu it reports minimal windows version WindowsVersion.win8_1 without flag it is WindowsVersion.win10_fe. That makes difference here
Without entering that 'Deletion with posix semantics' deleteTree loops:
Zig Version
0.12.0-dev.1800+559e216f3
Steps to Reproduce and Observed Behavior
This test fails on Windows when run with
-target aarch64-windows-gnu
on other platforms and on Windows without target flag passes.Created file is not closed and then in
tmp.cleanup()
deleteTree loops in trying to delete that file.Closing created file makes test pass.
Removing line
tmp.dir.close()
also makes test pass without closing file.Expected Behavior
deleteTree should return an error instead of trying forever to delete the same file.
The text was updated successfully, but these errors were encountered: