From 1188871ed4a3034a0b9ccd00ee58965d83a75e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 1 Jun 2026 12:06:26 +0200 Subject: [PATCH] test/c: disable failing *div tests on x86-windows --- test/c/stdlib.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/c/stdlib.zig b/test/c/stdlib.zig index 589a8ef59ab2ae5356fe50640493c479e44e9997..b93bf7226eb3598ff582cc8078900742e46f0b5c 100644 --- a/test/c/stdlib.zig +++ b/test/c/stdlib.zig @@ -33,6 +33,7 @@ test "div" { if (builtin.target.cpu.arch.isMIPS64()) return error.SkipZigTest; // TODO if (builtin.target.cpu.arch.isPowerPC()) return error.SkipZigTest; // TODO if (builtin.target.cpu.arch == .s390x) return error.SkipZigTest; // TODO + if (builtin.target.cpu.arch == .x86 and builtin.target.os.tag == .windows) return error.SkipZigTest; // TODO const expected: c.div_t = .{ .quot = 5, .rem = 5 }; try testing.expectEqual(expected, c.div(55, 10)); @@ -42,6 +43,7 @@ test "ldiv" { if (builtin.target.cpu.arch.isMIPS64() and @sizeOf(usize) == 4) return error.SkipZigTest; // TODO if (builtin.target.cpu.arch.isPowerPC32()) return error.SkipZigTest; // TODO if (builtin.target.cpu.arch == .s390x) return error.SkipZigTest; // TODO + if (builtin.target.cpu.arch == .x86 and builtin.target.os.tag == .windows) return error.SkipZigTest; // TODO const expected: c.ldiv_t = .{ .quot = -6, .rem = 2 }; try testing.expectEqual(expected, c.ldiv(38, -6)); -- 2.54.0