authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:13:12 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-28 12:13:12 -07:00
log5e361da8000e29beedc5945d2eeadf58fef8c2bc
tree8b452be48a0d95381600319ab6b4b9c6a5a5d76b
parent48a7e1e1844a9be227073bba9ec7a3ed2a0ce360

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


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

build.zig+1
...@@ -21,6 +21,7 @@ pub fn build(b: *std.Build) void {...@@ -21,6 +21,7 @@ pub fn build(b: *std.Build) void {
21 test_exe.root_module.addImport("build_options", build_options.createModule());21 test_exe.root_module.addImport("build_options", build_options.createModule());
2222
23 const test_cmd = b.addRunArtifact(test_exe);23 const test_cmd = b.addRunArtifact(test_exe);
24 test_cmd.setCwd(b.path("."));
24 test_cmd.has_side_effects = true;25 test_cmd.has_side_effects = true;
25 test_cmd.step.dependOn(b.getInstallStep());26 test_cmd.step.dependOn(b.getInstallStep());
2627