zig/test/standalone/empty_env/build.zig
Andrew Kelley e1fbb24d64
add test for spawning child process with empty environment
thanks to BenoitJGirard for pointing out the child process
implementation needs 3 extra null bytes in #2031
2019-03-11 11:56:08 -04:00

13 lines
329 B
Zig

const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const main = b.addExecutable("main", "main.zig");
main.setBuildMode(b.standardReleaseOptions());
const run = main.run();
run.clearEnvironment();
const test_step = b.step("test", "Test it");
test_step.dependOn(&run.step);
}