Skip to content

Commit 234693b

Browse files
committed
tests: skip native CPU std tests on Windows
See tracking issue ziglang#17902
1 parent 5ea973d commit 234693b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/tests.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,16 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
10951095
test_target.use_llvm == false and mem.eql(u8, options.name, "std"))
10961096
continue;
10971097

1098+
if (test_target.target.getCpuArch() == .x86_64 and
1099+
test_target.target.getOsTag() == .windows and
1100+
test_target.target.cpu_arch == null and
1101+
test_target.optimize_mode != .Debug and
1102+
mem.eql(u8, options.name, "std"))
1103+
{
1104+
// https://github.com/ziglang/zig/issues/17902
1105+
continue;
1106+
}
1107+
10981108
const want_this_mode = for (options.optimize_modes) |m| {
10991109
if (m == test_target.optimize_mode) break true;
11001110
} else false;

0 commit comments

Comments
 (0)