| ... | @@ -1559,11 +1559,11 @@ test "open file with exclusive nonblocking lock twice (absolute paths)" { | ... | @@ -1559,11 +1559,11 @@ test "open file with exclusive nonblocking lock twice (absolute paths)" { |
| 1559 | const filename = try fs.path.resolve(gpa, &.{ cwd, sub_path }); | 1559 | const filename = try fs.path.resolve(gpa, &.{ cwd, sub_path }); |
| 1560 | defer gpa.free(filename); | 1560 | defer gpa.free(filename); |
| 1561 | | 1561 | |
| | 1562 | defer fs.deleteFileAbsolute(filename) catch {}; // createFileAbsolute can leave files on failures |
| 1562 | const file1 = try fs.createFileAbsolute(filename, .{ | 1563 | const file1 = try fs.createFileAbsolute(filename, .{ |
| 1563 | .lock = .exclusive, | 1564 | .lock = .exclusive, |
| 1564 | .lock_nonblocking = true, | 1565 | .lock_nonblocking = true, |
| 1565 | }); | 1566 | }); |
| 1566 | defer fs.deleteFileAbsolute(filename) catch {}; | | |
| 1567 | | 1567 | |
| 1568 | const file2 = fs.createFileAbsolute(filename, .{ | 1568 | const file2 = fs.createFileAbsolute(filename, .{ |
| 1569 | .lock = .exclusive, | 1569 | .lock = .exclusive, |