authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:12:12 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:12:12 -07:00
log5f89211a749aef6bf518889c0467ceb24825c055
tree28dc75263e31b6a490e26243bea952d80b8e86fd
parent18c6c24d692df31a17f78299c4a539c935d1feb1

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


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

build.zig+1
...@@ -33,6 +33,7 @@ pub fn build(b: *std.Build) void {...@@ -33,6 +33,7 @@ pub fn build(b: *std.Build) void {
33 tests.use_lld = !disable_llvm;33 tests.use_lld = !disable_llvm;
3434
35 const run_test = b.addRunArtifact(tests);35 const run_test = b.addRunArtifact(tests);
36 run_test.setCwd(b.path("."));
36 run_test.has_side_effects = true;37 run_test.has_side_effects = true;
3738
38 const test_step = b.step("test", "Run all library tests");39 const test_step = b.step("test", "Run all library tests");