Merge pull request 'added absolute path to exercises, also for tests' (#484) from root_path into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/484
This commit is contained in:
Chris Boesch
2026-06-29 18:38:40 +02:00
+1 -2
View File
@@ -370,8 +370,7 @@ fn runTest(ctx: Context, ex: Exercise) !void {
const arena = ctx.arena;
print("Compiling {s}...\n", .{ex.main_file});
const path = std.fs.path.join(arena, &.{ ctx.work_path, ex.main_file }) catch
@panic("OOM");
const path = std.fs.path.join(arena, &.{ ctx.root_path, ctx.work_path, ex.main_file }) catch @panic("OOM");
var argv = std.ArrayList([]const u8).initCapacity(arena, 8) catch @panic("OOM");
argv.append(arena, ctx.zig_exe) catch @panic("OOM");