authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2024-06-04 18:44:51-07:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2024-06-04 19:02:16-07:00
log016e87e7efa0311fe360ca2f0ba2a6fa583b3fda
tree055392dbdf718e7eb2a9d34a0bcdb2c1a4e48d22
parent5490021ab7d97425a44b78e218b5462f960d9c9d

fs tests: Fix leaking a directory handle in "makepath existing directories" test


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/fs/test.zig+2-1
...@@ -1161,7 +1161,8 @@ test "makepath existing directories" {...@@ -1161,7 +1161,8 @@ test "makepath existing directories" {
1161 defer tmp.cleanup();1161 defer tmp.cleanup();
11621162
1163 try tmp.dir.makeDir("A");1163 try tmp.dir.makeDir("A");
1164 const tmpA = try tmp.dir.openDir("A", .{});1164 var tmpA = try tmp.dir.openDir("A", .{});
1165 defer tmpA.close();
1165 try tmpA.makeDir("B");1166 try tmpA.makeDir("B");
11661167
1167 const testPath = "A" ++ fs.path.sep_str ++ "B" ++ fs.path.sep_str ++ "C";1168 const testPath = "A" ++ fs.path.sep_str ++ "B" ++ fs.path.sep_str ++ "C";