authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:11:57 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-12-17 18:31:47 -08:00
log535f8c08f226f6bd03d9d9622a4d8a2b86d88c5e
tree775b5595a35df410f68f425ea298302b38889e80
parent73aeaf86db7d1ee7ab39f053ccc846f3954ecd3a

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}