zig/test/standalone/empty_env/main.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

7 lines
202 B
Zig

const std = @import("std");
pub fn main() void {
const env_map = std.os.getEnvMap(std.debug.global_allocator) catch @panic("unable to get env map");
std.testing.expect(env_map.count() == 0);
}