authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:16:03 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:16:03 -07:00
log618eddde4ffbc6d34100e4bc6aa654d41161537a
tree2eb5f0dc7e9698882c4d874002b814a4379d4ca8
parentabcde0e877df670f96671bdca5b81b0e809df0d4

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


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

build.zig+1
...@@ -17,6 +17,7 @@ pub fn build(b: *std.Build) void {...@@ -17,6 +17,7 @@ pub fn build(b: *std.Build) void {
1717
18 const test_step = b.step("test", "Run all library tests");18 const test_step = b.step("test", "Run all library tests");
19 const tests_run = b.addRunArtifact(tests);19 const tests_run = b.addRunArtifact(tests);
20 tests_run.setCwd(b.path("."));
20 tests_run.has_side_effects = true;21 tests_run.has_side_effects = true;
21 test_step.dependOn(&tests_run.step);22 test_step.dependOn(&tests_run.step);
22}23}