authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-18 21:20:28+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-18 21:39:34+02:00
log3b41518c14cc2d9d9951a5ce3f44ed942502e1a9
tree1a9b85b9cf56dd43f9f19aa330f5f35548c2e91d
parent91bcdbec34ae5f56293e7470fe66924d161cd5fc
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std: disable some tests that fail on sparc64


3 files changed, 5 insertions(+), 0 deletions(-)

lib/std/Io/test.zig+1
......@@ -628,6 +628,7 @@ test "randomSecure" {
628628
629629test "memory mapping" {
630630 if (builtin.cpu.arch == .hexagon) return error.SkipZigTest; // mmap returned EINVAL
631 if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest; // mmap returned EINVAL
631632 if (builtin.os.tag == .wasi and builtin.link_libc) {
632633 // https://github.com/ziglang/zig/issues/20747 (open fd does not have write permission)
633634 return error.SkipZigTest;
lib/std/math/acos.zig+2
......@@ -448,6 +448,8 @@ test "acosBinary128.special" {
448448}
449449
450450test "acosBinary128" {
451 if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest;
452
451453 try testing.expectApproxEqAbs(0x1.250e9a58f049eeafa99db4360c88p1, acosBinary128(-0x1.511bdb99a3c4373bedf834ef4f68p-1), math.floatEpsAt(f128, 0x1.250e9a58f049eeafa99db4360c88p1));
452454 try testing.expectApproxEqAbs(0x1.2786664b1c676c99437b68590004p1, acosBinary128(-0x1.5879cc3ad6dfd2a52e9891c69808p-1), math.floatEpsAt(f128, 0x1.2786664b1c676c99437b68590004p1));
453455 try testing.expectApproxEqAbs(0x1.cb190cd361c7c03a09c470b4caebp-1, acosBinary128(0x1.3f988ba64a7eb97a751c5f0b3077p-1), math.floatEpsAt(f128, 0x1.cb190cd361c7c03a09c470b4caebp-1));
lib/std/math/asin.zig+2
......@@ -442,6 +442,8 @@ test "asinBinary128.special" {
442442}
443443
444444test "asinBinary128" {
445 if (builtin.cpu.arch.isSPARC()) return error.SkipZigTest;
446
445447 try testing.expectApproxEqAbs(0x1.87e9c740d7837f8e8fa667988fbep-3, asinBinary128(0x1.85868ce287ca0196b01c25fec5ffp-3), math.floatEpsAt(f128, 0x1.87e9c740d7837f8e8fa667988fbep-3));
446448 try testing.expectApproxEqAbs(0x1.bd11a474e864213b48e0f005f1f4p-1, asinBinary128(0x1.8718d6d30b4daed08d04ef59f478p-1), math.floatEpsAt(f128, 0x1.bd11a474e864213b48e0f005f1f4p-1));
447449 try testing.expectApproxEqAbs(0x1.20b56f8b42649fe72d1f8d68a378p-1, asinBinary128(0x1.11a67640cd7f0ba5d5e362f3abfap-1), math.floatEpsAt(f128, 0x1.20b56f8b42649fe72d1f8d68a378p-1));