authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:14:39 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:14:39 -07:00
log0ac5f26a1db453b02178d19298bb56125f70d356
tree1c550cc4c75d5ad663e0c1c15bcc9dd5e72e3698
parent86fc3f6cb4dcc2847832524a3f80d520c7a6577c

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 test_step.dependOn(&exe2.step);43 test_step.dependOn(&exe2.step);