zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3b41518c14cc2d9d9951a5ce3f44ed942502e1a9 (tree)
parent 91bcdbec34ae5f56293e7470fe66924d161cd5fc
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Mon, 18 May 2026 21:20:28 +0200

std: disable some tests that fail on sparc64

Diffstat:
Mlib/std/Io/test.zig | 1+
Mlib/std/math/acos.zig | 2++
Mlib/std/math/asin.zig | 2++
3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/std/Io/test.zig b/lib/std/Io/test.zig @@ -628,6 +628,7 @@ test "randomSecure" { test "memory mapping" { if (builtin.cpu.arch == .hexagon) return error.SkipZigTest; // mmap returned EINVAL + if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest; // mmap returned EINVAL if (builtin.os.tag == .wasi and builtin.link_libc) { // https://github.com/ziglang/zig/issues/20747 (open fd does not have write permission) return error.SkipZigTest; diff --git a/lib/std/math/acos.zig b/lib/std/math/acos.zig @@ -448,6 +448,8 @@ test "acosBinary128.special" { } test "acosBinary128" { + if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest; + try testing.expectApproxEqAbs(0x1.250e9a58f049eeafa99db4360c88p1, acosBinary128(-0x1.511bdb99a3c4373bedf834ef4f68p-1), math.floatEpsAt(f128, 0x1.250e9a58f049eeafa99db4360c88p1)); try testing.expectApproxEqAbs(0x1.2786664b1c676c99437b68590004p1, acosBinary128(-0x1.5879cc3ad6dfd2a52e9891c69808p-1), math.floatEpsAt(f128, 0x1.2786664b1c676c99437b68590004p1)); try testing.expectApproxEqAbs(0x1.cb190cd361c7c03a09c470b4caebp-1, acosBinary128(0x1.3f988ba64a7eb97a751c5f0b3077p-1), math.floatEpsAt(f128, 0x1.cb190cd361c7c03a09c470b4caebp-1)); diff --git a/lib/std/math/asin.zig b/lib/std/math/asin.zig @@ -442,6 +442,8 @@ test "asinBinary128.special" { } test "asinBinary128" { + if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest; + try testing.expectApproxEqAbs(0x1.87e9c740d7837f8e8fa667988fbep-3, asinBinary128(0x1.85868ce287ca0196b01c25fec5ffp-3), math.floatEpsAt(f128, 0x1.87e9c740d7837f8e8fa667988fbep-3)); try testing.expectApproxEqAbs(0x1.bd11a474e864213b48e0f005f1f4p-1, asinBinary128(0x1.8718d6d30b4daed08d04ef59f478p-1), math.floatEpsAt(f128, 0x1.bd11a474e864213b48e0f005f1f4p-1)); try testing.expectApproxEqAbs(0x1.20b56f8b42649fe72d1f8d68a378p-1, asinBinary128(0x1.11a67640cd7f0ba5d5e362f3abfap-1), math.floatEpsAt(f128, 0x1.20b56f8b42649fe72d1f8d68a378p-1));