From 5e361da8000e29beedc5945d2eeadf58fef8c2bc Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 28 Aug 2025 12:13:12 -0700 Subject: [PATCH] build.zig: ensure tests are run with project root as cwd --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index b8ca82dd0a42e72d4cedfc462f0493b3b124c4a7..04137abd158ae770234d2b020783c95051e53578 100644 --- a/build.zig +++ b/build.zig @@ -21,6 +21,7 @@ pub fn build(b: *std.Build) void { test_exe.root_module.addImport("build_options", build_options.createModule()); const test_cmd = b.addRunArtifact(test_exe); + test_cmd.setCwd(b.path(".")); test_cmd.has_side_effects = true; test_cmd.step.dependOn(b.getInstallStep()); -- 2.54.0