diff --git a/lib/std/heap/debug_allocator.zig b/lib/std/heap/debug_allocator.zig index 0b57d934fc770fed35869169f6280fcb4d17ec74..c5abf6709c8d4d900f2c862b8e1f3110095303a0 100644 --- a/lib/std/heap/debug_allocator.zig +++ b/lib/std/heap/debug_allocator.zig @@ -1350,7 +1350,10 @@ test "non-page-allocator backing allocator" { } test "realloc large object to 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){}; defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");