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" {...@@ -1235,6 +1235,8 @@ test "shrink large object to large object" {
1235}1235}
12361236
1237test "shrink large object to large object with larger alignment" {1237test "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
1238 var gpa = GeneralPurposeAllocator(test_config){};1240 var gpa = GeneralPurposeAllocator(test_config){};
1239 defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");1241 defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");
1240 const allocator = gpa.allocator();1242 const allocator = gpa.allocator();
...@@ -1307,6 +1309,8 @@ test "non-page-allocator backing allocator" {...@@ -1307,6 +1309,8 @@ test "non-page-allocator backing allocator" {
1307}1309}
13081310
1309test "realloc large object to larger alignment" {1311test "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
1310 var gpa = GeneralPurposeAllocator(test_config){};1314 var gpa = GeneralPurposeAllocator(test_config){};
1311 defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");1315 defer std.testing.expect(gpa.deinit() == .ok) catch @panic("leak");
1312 const allocator = gpa.allocator();1316 const allocator = gpa.allocator();