mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
fs tests: Fix leaking a directory handle in "makepath existing directories" test
This commit is contained in:
parent
5490021ab7
commit
016e87e7ef
1 changed files with 2 additions and 1 deletions
|
|
@ -1161,7 +1161,8 @@ test "makepath existing directories" {
|
|||
defer tmp.cleanup();
|
||||
|
||||
try tmp.dir.makeDir("A");
|
||||
const tmpA = try tmp.dir.openDir("A", .{});
|
||||
var tmpA = try tmp.dir.openDir("A", .{});
|
||||
defer tmpA.close();
|
||||
try tmpA.makeDir("B");
|
||||
|
||||
const testPath = "A" ++ fs.path.sep_str ++ "B" ++ fs.path.sep_str ++ "C";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue