authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-02-03 09:12:20+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-02-03 09:17:52+00:00
logdc5c8278474f998360bc48e3dd0fe9a2929b4374
treedfa713567891339eab369752e922d9a9567a94a7
parent13c6eb0d71b253cc55a667e33dbdd4932f3710f1
signaturelock-open Commit is signed but in an unrecognized format.

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.

1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/heap/general_purpose_allocator.zig+4
......@@ -1235,6 +1235,8 @@ test "shrink large object to large object" {
12351235}
12361236
12371237test "shrink large object to large object with larger alignment" {
1238 if (!builtin.link_libc and builtin.os.tag == .wasi) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/22731
1239
12381240 var gpa = GeneralPurposeAllocator(test_config){};
12391241 defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");
12401242 const allocator = gpa.allocator();
......@@ -1307,6 +1309,8 @@ test "non-page-allocator backing allocator" {
13071309}
13081310
13091311test "realloc large object to larger alignment" {
1312 if (!builtin.link_libc and builtin.os.tag == .wasi) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/22731
1313
13101314 var gpa = GeneralPurposeAllocator(test_config){};
13111315 defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");
13121316 const allocator = gpa.allocator();