From 9ad29fbc6c594f4474919020a3c796d64ab38455 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 28 May 2026 16:11:32 -0700 Subject: [PATCH] disable failing tests revealed by this branch See #35517 See #35518 See #35519 See #35520 See #35521 See #35522 See #35523 See #35537 --- lib/std/math.zig | 5 +++++ lib/std/math/isnan.zig | 5 +++++ test/behavior/align.zig | 5 +++++ test/behavior/floatop.zig | 5 +++++ test/tests.zig | 35 +++++++++++++++++++++++++++-------- 5 files changed, 47 insertions(+), 8 deletions(-) diff --git a/lib/std/math.zig b/lib/std/math.zig index 0df59050ce6e42fc42be3c420efcadf464b231eb..5487e0cb37520ec415f7db1a712c88a8e1f2e9c1 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -461,6 +461,11 @@ pub fn wrap(x: anytype, r: anytype) @TypeOf(x) { } } test wrap { + if (builtin.os.tag == .windows and builtin.cpu.arch == .x86) { + // https://codeberg.org/ziglang/zig/issues/35520 + return error.SkipZigTest; + } + // Within range try testing.expect(wrap(@as(i32, -75), @as(i32, 180)) == -75); try testing.expect(wrap(@as(i32, -75), @as(i32, -180)) == -75); diff --git a/lib/std/math/isnan.zig b/lib/std/math/isnan.zig index cbfe15a2fd6a37dbe4cd963bdc2310f36c75f60d..bf2af9be1db7472aaceae82c3d052e606ce454b7 100644 --- a/lib/std/math/isnan.zig +++ b/lib/std/math/isnan.zig @@ -29,6 +29,11 @@ test isNan { test isSignalNan { if (builtin.zig_backend == .stage2_x86_64 and builtin.object_format == .coff and builtin.abi != .gnu) return error.SkipZigTest; + if (builtin.os.tag == .windows) { + // https://codeberg.org/ziglang/zig/issues/35519 + return error.SkipZigTest; + } + inline for ([_]type{ f16, f32, f64, f80, f128, c_longdouble }) |T| { // TODO: Signalling NaN values get converted to quiet NaN values in // some cases where they shouldn't such that this can fail. diff --git a/test/behavior/align.zig b/test/behavior/align.zig index 55eb1c604e8831b5b65fe51cb082b97cee81bd3b..3de3dd090670331c27e4856e90246483546a2432 100644 --- a/test/behavior/align.zig +++ b/test/behavior/align.zig @@ -29,6 +29,11 @@ test "large alignment of local constant" { if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; // flaky if (builtin.zig_backend == .stage2_c and builtin.target.abi == .msvc) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .windows) { + // https://codeberg.org/ziglang/zig/issues/35537 + return error.SkipZigTest; + } + const x: f32 align(128) = 12.34; try std.testing.expect(@intFromPtr(&x) % 128 == 0); } diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig index 44e6abe4a2fbb8fcdba707ea5cc211ec02fbcb6f..693656095332986f1062f0dd546acbe23c2bf8ff 100644 --- a/test/behavior/floatop.zig +++ b/test/behavior/floatop.zig @@ -948,6 +948,11 @@ test "@log2 with vectors" { builtin.cpu.arch == .aarch64 and builtin.os.tag == .windows) return error.SkipZigTest; + if (builtin.os.tag == .windows and builtin.cpu.arch == .x86) { + // https://codeberg.org/ziglang/zig/issues/35518 + return error.SkipZigTest; + } + try testLog2WithVectors(); try comptime testLog2WithVectors(); } diff --git a/test/tests.zig b/test/tests.zig index 8a160ab1ec922e2c78d06dfb71567970a5961b4f..2ec14e0f618f2094f6d537db17646eb6ccda9004 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1611,6 +1611,8 @@ const module_test_targets = blk: { .abi = .msvc, }, .link_libc = true, + // https://codeberg.org/ziglang/zig/issues/35517 + .skip_modules = &.{"libc"}, }, .{ .target = .{ @@ -1626,6 +1628,8 @@ const module_test_targets = blk: { .abi = .gnu, }, .link_libc = true, + // https://codeberg.org/ziglang/zig/issues/35517 + .skip_modules = &.{"libc"}, }, .{ @@ -1636,6 +1640,8 @@ const module_test_targets = blk: { }, .use_llvm = false, .use_lld = false, + // https://codeberg.org/ziglang/zig/issues/35537 + .skip_modules = &.{"behavior"}, }, .{ .target = .{ @@ -1651,6 +1657,8 @@ const module_test_targets = blk: { .abi = .msvc, }, .link_libc = true, + // https://codeberg.org/ziglang/zig/issues/35517 + .skip_modules = &.{"libc"}, }, .{ .target = .{ @@ -1991,13 +1999,14 @@ const c_abi_targets = blk: { // Windows Targets - .{ - .target = .{ - .cpu_arch = .x86, - .os_tag = .windows, - .abi = .gnu, - }, - }, + // https://codeberg.org/ziglang/zig/issues/35521 + //.{ + // .target = .{ + // .cpu_arch = .x86, + // .os_tag = .windows, + // .abi = .gnu, + // }, + //}, .{ .target = .{ .cpu_arch = .x86_64, @@ -2117,7 +2126,7 @@ pub fn isNative(actual_target: *const std.Build.ResolvedTarget, host: *const std .slow_unaligned_mem_16, .slow_unaligned_mem_32, }), - .aarch64 => std.Target.aarch64.featureSet(&.{ + .aarch64, .aarch64_be => std.Target.aarch64.featureSet(&.{ .addr_lsl_slow_14, .alu_lsl_fast, .avoid_ldapur, @@ -2627,6 +2636,16 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { const target = &resolved_target.result; + if (target.cpu.arch == .powerpc64le and target.ofmt == .c) { + // https://codeberg.org/ziglang/zig/issues/35522 + continue; + } + + if (target.cpu.arch == .s390x and target.ofmt == .c) { + // https://codeberg.org/ziglang/zig/issues/35523 + continue; + } + if (std.mem.eql(u8, options.name, "libc")) { // The libc API tests obviously need to link libc. So for test // target entries where we wouldn't link libc by default, skip the -- 2.54.0