std.heap.GeneralPurposeAllocator: disable some tests on wasm32-wasi

The ZON PR (#20271) is causing these tests to inexplicably fail. It
doesn't seem like that PR is what's breaking GPA, so these tests are now
disabled. This is tracked by #22731.
This commit is contained in:
mlugg 2025-02-03 09:12:20 +00:00
parent 13c6eb0d71
commit dc5c827847
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E

View File

@ -1235,6 +1235,8 @@ 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
var gpa = GeneralPurposeAllocator(test_config){};
defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");
const allocator = gpa.allocator();
@ -1307,6 +1309,8 @@ 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
var gpa = GeneralPurposeAllocator(test_config){};
defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");
const allocator = gpa.allocator();