authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-18 15:10:31-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-18 15:10:31-07:00
logf950f5452b6a8131f2bb3f665b2ac141dfba367f
treef7ee1c1e0f983f72ec21a5661e6f7a1616c18cf1
parent583b843803c5851c1d9796ba301f6a602a6da3d9

test_runner: don't assume the GeneralPurposeAllocator config

This allows changing the config in only 1 location (std.testing)

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

lib/std/special/test_runner.zig+1-1
......@@ -23,7 +23,7 @@ pub fn main() anyerror!void {
2323
2424 var leaks: usize = 0;
2525 for (test_fn_list) |test_fn, i| {
26 std.testing.allocator_instance = std.heap.GeneralPurposeAllocator(.{}){};
26 std.testing.allocator_instance = .{};
2727 defer {
2828 if (std.testing.allocator_instance.deinit()) {
2929 leaks += 1;