From 234693bcbba6f55ff6e975ddbedf0fad4dfaa8f1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 6 Nov 2023 16:02:27 -0700 Subject: [PATCH] tests: skip native CPU std tests on Windows See tracking issue #17902 --- test/tests.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/tests.zig b/test/tests.zig index e2bd12028b..2603ca7670 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1095,6 +1095,16 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { test_target.use_llvm == false and mem.eql(u8, options.name, "std")) continue; + if (test_target.target.getCpuArch() == .x86_64 and + test_target.target.getOsTag() == .windows and + test_target.target.cpu_arch == null and + test_target.optimize_mode != .Debug and + mem.eql(u8, options.name, "std")) + { + // https://github.com/ziglang/zig/issues/17902 + continue; + } + const want_this_mode = for (options.optimize_modes) |m| { if (m == test_target.optimize_mode) break true; } else false;