From ef1ddbe2f03a165c86af4e2dd36178b1d8661ebe Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 4 Jan 2026 00:26:27 -0800 Subject: [PATCH] std.heap.DebugAllocator: disable already flaky test tracked by #22731 --- 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 index 24f1554544c635dac055b465e38f873530afe430..0b57d934fc770fed35869169f6280fcb4d17ec74 100644 --- 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(); -- 2.54.0