From 664c1d0198c1d5027167461cc0013faf5fc53347 Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Sat, 20 Jun 2026 15:34:29 +0100 Subject: [PATCH] cbe: disable some failing tests --- lib/std/Random/RomuTrio.zig | 2 ++ lib/std/hash/xxhash.zig | 4 +++- test/behavior/vector.zig | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/std/Random/RomuTrio.zig b/lib/std/Random/RomuTrio.zig index 12885d49415cedc85ccc7e066bac25ef9e5e5346..9f005bf2f9fac8082eb4e71355dc90c73280d2b9 100644 --- a/lib/std/Random/RomuTrio.zig +++ b/lib/std/Random/RomuTrio.zig @@ -5,6 +5,7 @@ const std = @import("std"); const math = std.math; const RomuTrio = @This(); +const builtin = @import("builtin"); x_state: u64, y_state: u64, @@ -121,6 +122,7 @@ test fill { } test "buf seeding test" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; const buf0: [24]u8 = @bitCast([3]u64{ 16294208416658607535, 13964609475759908645, 4703697494102998476 }); const resulting_state = .{ .x = 16294208416658607535, .y = 13964609475759908645, .z = 4703697494102998476 }; var r = RomuTrio.init(0); diff --git a/lib/std/hash/xxhash.zig b/lib/std/hash/xxhash.zig index 11794234a334067b4618d923ba23650b5439121b..27f2701443cc919a9cd2686165ecc8ae087ae002 100644 --- a/lib/std/hash/xxhash.zig +++ b/lib/std/hash/xxhash.zig @@ -2,7 +2,6 @@ const std = @import("std"); const builtin = @import("builtin"); const mem = std.mem; const expectEqual = std.testing.expectEqual; -const native_endian = builtin.cpu.arch.endian(); const rotl = std.math.rotl; @@ -789,6 +788,7 @@ fn testExpect(comptime H: type, seed: anytype, input: []const u8, expected: u64) } test "xxhash3" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; const H = XxHash3; // Non-Seeded Tests try testExpect(H, 0, "", 0x2d06800538d394c2); @@ -820,6 +820,7 @@ test "xxhash3" { } test "xxhash3 smhasher" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; const Test = struct { fn do() !void { try expectEqual(verify.smhasher(XxHash3.hash), 0x9a636405); @@ -831,6 +832,7 @@ test "xxhash3 smhasher" { } test "xxhash3 iterative api" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; const Test = struct { fn do() !void { try verify.iterativeApi(XxHash3); diff --git a/test/behavior/vector.zig b/test/behavior/vector.zig index 4f4e161604ce810136959627669daaef4e2d137e..deedc94eab33a748e1d76a1ca08ea0d2241f0071 100644 --- a/test/behavior/vector.zig +++ b/test/behavior/vector.zig @@ -1620,6 +1620,7 @@ test "bitcast vector to array of smaller vectors" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; const u8x32 = @Vector(32, u8); const u8x64 = @Vector(64, u8); -- 2.54.0