| ... | @@ -1161,7 +1161,8 @@ test "makepath existing directories" { | ... | @@ -1161,7 +1161,8 @@ test "makepath existing directories" { |
| 1161 | defer tmp.cleanup(); | 1161 | defer tmp.cleanup(); |
| 1162 | | 1162 | |
| 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"); |
| 1166 | | 1167 | |
| 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"; |