tests: skip native CPU std tests on Windows

See tracking issue #17902
This commit is contained in:
Andrew Kelley 2023-11-06 16:02:27 -07:00
parent 5ea973dc39
commit 234693bcbb

View File

@ -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")) test_target.use_llvm == false and mem.eql(u8, options.name, "std"))
continue; 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| { const want_this_mode = for (options.optimize_modes) |m| {
if (m == test_target.optimize_mode) break true; if (m == test_target.optimize_mode) break true;
} else false; } else false;