| author | |
| committer | |
| log | 9ad29fbc6c594f4474919020a3c796d64ab38455 |
| tree | 6045b9a0ae1173946f6947cb84dd5df2da3e138c |
| parent | 555086b1f33f8dc8933c8de989a413b316296cd7 |
See #35517
See #35518
See #35519
See #35520
See #35521
See #35522
See #35523
See #355375 files changed, 47 insertions(+), 8 deletions(-)
lib/std/math.zig+5| ... | @@ -461,6 +461,11 @@ pub fn wrap(x: anytype, r: anytype) @TypeOf(x) { | ... | @@ -461,6 +461,11 @@ pub fn wrap(x: anytype, r: anytype) @TypeOf(x) { |
| 461 | } | 461 | } |
| 462 | } | 462 | } |
| 463 | test wrap { | 463 | test wrap { |
| 464 | if (builtin.os.tag == .windows and builtin.cpu.arch == .x86) { | ||
| 465 | // https://codeberg.org/ziglang/zig/issues/35520 | ||
| 466 | return error.SkipZigTest; | ||
| 467 | } | ||
| 468 | |||
| 464 | // Within range | 469 | // Within range |
| 465 | try testing.expect(wrap(@as(i32, -75), @as(i32, 180)) == -75); | 470 | try testing.expect(wrap(@as(i32, -75), @as(i32, 180)) == -75); |
| 466 | try testing.expect(wrap(@as(i32, -75), @as(i32, -180)) == -75); | 471 | try testing.expect(wrap(@as(i32, -75), @as(i32, -180)) == -75); |
lib/std/math/isnan.zig+5| ... | @@ -29,6 +29,11 @@ test isNan { | ... | @@ -29,6 +29,11 @@ test isNan { |
| 29 | test isSignalNan { | 29 | test isSignalNan { |
| 30 | if (builtin.zig_backend == .stage2_x86_64 and builtin.object_format == .coff and builtin.abi != .gnu) return error.SkipZigTest; | 30 | if (builtin.zig_backend == .stage2_x86_64 and builtin.object_format == .coff and builtin.abi != .gnu) return error.SkipZigTest; |
| 31 | 31 | ||
| 32 | if (builtin.os.tag == .windows) { | ||
| 33 | // https://codeberg.org/ziglang/zig/issues/35519 | ||
| 34 | return error.SkipZigTest; | ||
| 35 | } | ||
| 36 | |||
| 32 | inline for ([_]type{ f16, f32, f64, f80, f128, c_longdouble }) |T| { | 37 | inline for ([_]type{ f16, f32, f64, f80, f128, c_longdouble }) |T| { |
| 33 | // TODO: Signalling NaN values get converted to quiet NaN values in | 38 | // TODO: Signalling NaN values get converted to quiet NaN values in |
| 34 | // some cases where they shouldn't such that this can fail. | 39 | // some cases where they shouldn't such that this can fail. |
test/behavior/align.zig+5| ... | @@ -29,6 +29,11 @@ test "large alignment of local constant" { | ... | @@ -29,6 +29,11 @@ test "large alignment of local constant" { |
| 29 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; // flaky | 29 | if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; // flaky |
| 30 | if (builtin.zig_backend == .stage2_c and builtin.target.abi == .msvc) return error.SkipZigTest; | 30 | if (builtin.zig_backend == .stage2_c and builtin.target.abi == .msvc) return error.SkipZigTest; |
| 31 | 31 | ||
| 32 | if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .windows) { | ||
| 33 | // https://codeberg.org/ziglang/zig/issues/35537 | ||
| 34 | return error.SkipZigTest; | ||
| 35 | } | ||
| 36 | |||
| 32 | const x: f32 align(128) = 12.34; | 37 | const x: f32 align(128) = 12.34; |
| 33 | try std.testing.expect(@intFromPtr(&x) % 128 == 0); | 38 | try std.testing.expect(@intFromPtr(&x) % 128 == 0); |
| 34 | } | 39 | } |
test/behavior/floatop.zig+5| ... | @@ -948,6 +948,11 @@ test "@log2 with vectors" { | ... | @@ -948,6 +948,11 @@ test "@log2 with vectors" { |
| 948 | builtin.cpu.arch == .aarch64 and | 948 | builtin.cpu.arch == .aarch64 and |
| 949 | builtin.os.tag == .windows) return error.SkipZigTest; | 949 | builtin.os.tag == .windows) return error.SkipZigTest; |
| 950 | 950 | ||
| 951 | if (builtin.os.tag == .windows and builtin.cpu.arch == .x86) { | ||
| 952 | // https://codeberg.org/ziglang/zig/issues/35518 | ||
| 953 | return error.SkipZigTest; | ||
| 954 | } | ||
| 955 | |||
| 951 | try testLog2WithVectors(); | 956 | try testLog2WithVectors(); |
| 952 | try comptime testLog2WithVectors(); | 957 | try comptime testLog2WithVectors(); |
| 953 | } | 958 | } |
test/tests.zig+27-8| ... | @@ -1611,6 +1611,8 @@ const module_test_targets = blk: { | ... | @@ -1611,6 +1611,8 @@ const module_test_targets = blk: { |
| 1611 | .abi = .msvc, | 1611 | .abi = .msvc, |
| 1612 | }, | 1612 | }, |
| 1613 | .link_libc = true, | 1613 | .link_libc = true, |
| 1614 | // https://codeberg.org/ziglang/zig/issues/35517 | ||
| 1615 | .skip_modules = &.{"libc"}, | ||
| 1614 | }, | 1616 | }, |
| 1615 | .{ | 1617 | .{ |
| 1616 | .target = .{ | 1618 | .target = .{ |
| ... | @@ -1626,6 +1628,8 @@ const module_test_targets = blk: { | ... | @@ -1626,6 +1628,8 @@ const module_test_targets = blk: { |
| 1626 | .abi = .gnu, | 1628 | .abi = .gnu, |
| 1627 | }, | 1629 | }, |
| 1628 | .link_libc = true, | 1630 | .link_libc = true, |
| 1631 | // https://codeberg.org/ziglang/zig/issues/35517 | ||
| 1632 | .skip_modules = &.{"libc"}, | ||
| 1629 | }, | 1633 | }, |
| 1630 | 1634 | ||
| 1631 | .{ | 1635 | .{ |
| ... | @@ -1636,6 +1640,8 @@ const module_test_targets = blk: { | ... | @@ -1636,6 +1640,8 @@ const module_test_targets = blk: { |
| 1636 | }, | 1640 | }, |
| 1637 | .use_llvm = false, | 1641 | .use_llvm = false, |
| 1638 | .use_lld = false, | 1642 | .use_lld = false, |
| 1643 | // https://codeberg.org/ziglang/zig/issues/35537 | ||
| 1644 | .skip_modules = &.{"behavior"}, | ||
| 1639 | }, | 1645 | }, |
| 1640 | .{ | 1646 | .{ |
| 1641 | .target = .{ | 1647 | .target = .{ |
| ... | @@ -1651,6 +1657,8 @@ const module_test_targets = blk: { | ... | @@ -1651,6 +1657,8 @@ const module_test_targets = blk: { |
| 1651 | .abi = .msvc, | 1657 | .abi = .msvc, |
| 1652 | }, | 1658 | }, |
| 1653 | .link_libc = true, | 1659 | .link_libc = true, |
| 1660 | // https://codeberg.org/ziglang/zig/issues/35517 | ||
| 1661 | .skip_modules = &.{"libc"}, | ||
| 1654 | }, | 1662 | }, |
| 1655 | .{ | 1663 | .{ |
| 1656 | .target = .{ | 1664 | .target = .{ |
| ... | @@ -1991,13 +1999,14 @@ const c_abi_targets = blk: { | ... | @@ -1991,13 +1999,14 @@ const c_abi_targets = blk: { |
| 1991 | 1999 | ||
| 1992 | // Windows Targets | 2000 | // Windows Targets |
| 1993 | 2001 | ||
| 1994 | .{ | 2002 | // https://codeberg.org/ziglang/zig/issues/35521 |
| 1995 | .target = .{ | 2003 | //.{ |
| 1996 | .cpu_arch = .x86, | 2004 | // .target = .{ |
| 1997 | .os_tag = .windows, | 2005 | // .cpu_arch = .x86, |
| 1998 | .abi = .gnu, | 2006 | // .os_tag = .windows, |
| 1999 | }, | 2007 | // .abi = .gnu, |
| 2000 | }, | 2008 | // }, |
| 2009 | //}, | ||
| 2001 | .{ | 2010 | .{ |
| 2002 | .target = .{ | 2011 | .target = .{ |
| 2003 | .cpu_arch = .x86_64, | 2012 | .cpu_arch = .x86_64, |
| ... | @@ -2117,7 +2126,7 @@ pub fn isNative(actual_target: *const std.Build.ResolvedTarget, host: *const std | ... | @@ -2117,7 +2126,7 @@ pub fn isNative(actual_target: *const std.Build.ResolvedTarget, host: *const std |
| 2117 | .slow_unaligned_mem_16, | 2126 | .slow_unaligned_mem_16, |
| 2118 | .slow_unaligned_mem_32, | 2127 | .slow_unaligned_mem_32, |
| 2119 | }), | 2128 | }), |
| 2120 | .aarch64 => std.Target.aarch64.featureSet(&.{ | 2129 | .aarch64, .aarch64_be => std.Target.aarch64.featureSet(&.{ |
| 2121 | .addr_lsl_slow_14, | 2130 | .addr_lsl_slow_14, |
| 2122 | .alu_lsl_fast, | 2131 | .alu_lsl_fast, |
| 2123 | .avoid_ldapur, | 2132 | .avoid_ldapur, |
| ... | @@ -2627,6 +2636,16 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { | ... | @@ -2627,6 +2636,16 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { |
| 2627 | 2636 | ||
| 2628 | const target = &resolved_target.result; | 2637 | const target = &resolved_target.result; |
| 2629 | 2638 | ||
| 2639 | if (target.cpu.arch == .powerpc64le and target.ofmt == .c) { | ||
| 2640 | // https://codeberg.org/ziglang/zig/issues/35522 | ||
| 2641 | continue; | ||
| 2642 | } | ||
| 2643 | |||
| 2644 | if (target.cpu.arch == .s390x and target.ofmt == .c) { | ||
| 2645 | // https://codeberg.org/ziglang/zig/issues/35523 | ||
| 2646 | continue; | ||
| 2647 | } | ||
| 2648 | |||
| 2630 | if (std.mem.eql(u8, options.name, "libc")) { | 2649 | if (std.mem.eql(u8, options.name, "libc")) { |
| 2631 | // The libc API tests obviously need to link libc. So for test | 2650 | // The libc API tests obviously need to link libc. So for test |
| 2632 | // target entries where we wouldn't link libc by default, skip the | 2651 | // target entries where we wouldn't link libc by default, skip the |