| author | |
| committer | |
| log | 423d7b848b1953173df99fde1f83166dc68c2a2c |
| tree | 851bc6bbccfff2b8b85ae60471f535ce5e4b3f58 |
| parent | 539e0b0469457e6f3732f9d417cf023d7a1f1b68 |
The runCases function incorrectly called the introspect.findZigLibDir
function, causing a possible error, depending on the location of the
local cache directory, since the current executable is check-case.
Use findZigLibDirFromSelfExe, passing the zig_exe_path argument.
The current CI scripts work correctly because ZIG_LOCAL_CACHE_DIR is set
to "$(pwd)/zig-local-cache".
Fixes #150441 files changed, 1 insertions(+), 1 deletions(-)
test/src/Cases.zig+1-1| ... | ... | @@ -1154,7 +1154,7 @@ fn runCases(self: *Cases, zig_exe_path: []const u8) !void { |
| 1154 | 1154 | progress.terminal = null; |
| 1155 | 1155 | defer root_node.end(); |
| 1156 | 1156 | |
| 1157 | var zig_lib_directory = try introspect.findZigLibDir(self.gpa); | |
| 1157 | var zig_lib_directory = try introspect.findZigLibDirFromSelfExe(self.gpa, zig_exe_path); | |
| 1158 | 1158 | defer zig_lib_directory.handle.close(); |
| 1159 | 1159 | defer self.gpa.free(zig_lib_directory.path.?); |
| 1160 | 1160 |