| author | |
| committer | |
| log | d4161e1667e8b5c63859e524645d04eaf479c0b2 |
| tree | 587a85e075695050149142e1aea2b84fc33188eb |
| parent | 772bb1ade372ad625381ccee198c812fcccc0e3d |
1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/fs.zig+1| ... | ... | @@ -1691,6 +1691,7 @@ test "open file with exclusive nonblocking lock twice" { |
| 1691 | 1691 | const filename = "file_nonblocking_lock_test.txt"; |
| 1692 | 1692 | |
| 1693 | 1693 | const file1 = try dir.createFile(filename, .{ .lock = .Exclusive, .lock_nonblocking = true }); |
| 1694 | defer file1.close(); | |
| 1694 | 1695 | |
| 1695 | 1696 | const file2 = dir.createFile(filename, .{ .lock = .Exclusive, .lock_nonblocking = true }); |
| 1696 | 1697 | std.debug.assert(std.meta.eql(file2, error.WouldBlock)); |