commit f522fb9ca3ae461df7682662293da96798dd6140 (tree) parent 4b89a4c7cbd3653518ecf743ed707f516d187e78 Author: Parzival-3141 <29632054+Parzival-3141@users.noreply.github.com> Date: Sat, 17 Feb 2024 02:25:53 -0500 fix `standalone/empty_env` test The problem seems to be ConEmu setting environment variables before executing the test process. The test passes when run in Windows CMD. Diffstat:
| M | test/standalone/empty_env/build.zig | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/standalone/empty_env/build.zig b/test/standalone/empty_env/build.zig @@ -7,8 +7,10 @@ pub fn build(b: *std.Build) void { const optimize: std.builtin.OptimizeMode = .Debug; - if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64) { - // https://github.com/ziglang/zig/issues/13685 + if (builtin.os.tag == .windows and std.process.hasEnvVarConstant("ConEmuHWND")) { + // ConEmu injects environment variables into processes before they are executed + // depending on user settings. This obviously invalidates the test, so skipping + // it is the best option. return; }