| ... | @@ -1691,6 +1691,7 @@ test "open file with exclusive nonblocking lock twice" { | ... | @@ -1691,6 +1691,7 @@ test "open file with exclusive nonblocking lock twice" { |
| 1691 | const filename = "file_nonblocking_lock_test.txt"; | 1691 | const filename = "file_nonblocking_lock_test.txt"; |
| 1692 | | 1692 | |
| 1693 | const file1 = try dir.createFile(filename, .{ .lock = .Exclusive, .lock_nonblocking = true }); | 1693 | const file1 = try dir.createFile(filename, .{ .lock = .Exclusive, .lock_nonblocking = true }); |
| | 1694 | defer file1.close(); |
| 1694 | | 1695 | |
| 1695 | const file2 = dir.createFile(filename, .{ .lock = .Exclusive, .lock_nonblocking = true }); | 1696 | const file2 = dir.createFile(filename, .{ .lock = .Exclusive, .lock_nonblocking = true }); |
| 1696 | std.debug.assert(std.meta.eql(file2, error.WouldBlock)); | 1697 | std.debug.assert(std.meta.eql(file2, error.WouldBlock)); |