commit ef1ddbe2f03a165c86af4e2dd36178b1d8661ebe (tree) parent 420a9aed4c27af2501b6e85973b7762a7e38b9e4 Author: Andrew Kelley <andrew@ziglang.org> Date: Sun, 4 Jan 2026 00:26:27 -0800 std.heap.DebugAllocator: disable already flaky test tracked by #22731 Diffstat:
| M | lib/std/heap/debug_allocator.zig | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/std/heap/debug_allocator.zig b/lib/std/heap/debug_allocator.zig @@ -1272,9 +1272,12 @@ test "shrink large object to large object" { } test "shrink large object to large object with larger alignment" { - if (!builtin.link_libc and builtin.os.tag == .wasi) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/22731 + if (builtin.os.tag == .wasi) { + // https://github.com/ziglang/zig/issues/22731 + return error.SkipZigTest; + } - var gpa = DebugAllocator(test_config){}; + var gpa: DebugAllocator(test_config) = .{}; defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak"); const allocator = gpa.allocator();