authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:14:23 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:14:23 -07:00
logc207049e9c463dc1dfbd4d6915b1164ed80a982a
tree9aea0f15cd95dc3817cfdc17e3698e4c2a47a7ea
parenta0e281110f54a160df7b0de49041251fca7f3a5a

build.zig: ensure tests are run with project root as cwd


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

build.zig+1
...@@ -26,6 +26,7 @@ pub fn build(b: *std.Build) void {...@@ -26,6 +26,7 @@ pub fn build(b: *std.Build) void {
2626
27 const test_step = b.step("test", "Run all library tests");27 const test_step = b.step("test", "Run all library tests");
28 const tests_run = b.addRunArtifact(tests);28 const tests_run = b.addRunArtifact(tests);
29 tests_run.setCwd(b.path("."));
29 tests_run.has_side_effects = true;30 tests_run.has_side_effects = true;
30 test_step.dependOn(&tests_run.step);31 test_step.dependOn(&tests_run.step);
31}32}