authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:15:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:15:18 -07:00
log655572fe75ac5172bd981922b3c66068855c9041
tree181e47bd27561b0af6d1ae877f24774fa294c422
parent3bee7b28a37f3d0898119ef095687467fa907d4b

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


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

build.zig+1
...@@ -37,6 +37,7 @@ pub fn build(b: *std.Build) void {...@@ -37,6 +37,7 @@ pub fn build(b: *std.Build) void {
3737
38 const test_step = b.step("test", "Run all library tests");38 const test_step = b.step("test", "Run all library tests");
39 const tests_run = b.addRunArtifact(tests);39 const tests_run = b.addRunArtifact(tests);
40 tests_run.setCwd(b.path("."));
40 tests_run.has_side_effects = true;41 tests_run.has_side_effects = true;
41 test_step.dependOn(&tests_run.step);42 test_step.dependOn(&tests_run.step);
42}43}