Commit dd1de18f96

Alex Rønne Petersen <alex@alexrp.com>
2025-05-06 05:35:53
std: Disable `hash.xxhash.test.xxhash3` on MIPS N32.
https://github.com/ziglang/zig/issues/23807
1 parent d381645
Changed files (1)
lib
std
lib/std/hash/xxhash.zig
@@ -781,6 +781,7 @@ fn testExpect(comptime H: type, seed: anytype, input: []const u8, expected: u64)
 
 test "xxhash3" {
     if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+    if (builtin.cpu.arch.isMIPS64() and (builtin.abi == .gnuabin32 or builtin.abi == .muslabin32)) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23807
 
     const H = XxHash3;
     // Non-Seeded Tests
@@ -814,6 +815,7 @@ test "xxhash3" {
 
 test "xxhash3 smhasher" {
     if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+    if (builtin.cpu.arch.isMIPS64() and (builtin.abi == .gnuabin32 or builtin.abi == .muslabin32)) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23807
 
     const Test = struct {
         fn do() !void {
@@ -827,6 +829,7 @@ test "xxhash3 smhasher" {
 
 test "xxhash3 iterative api" {
     if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+    if (builtin.cpu.arch.isMIPS64() and (builtin.abi == .gnuabin32 or builtin.abi == .muslabin32)) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23807
 
     const Test = struct {
         fn do() !void {