diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-08-18 15:10:31 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-18 15:10:31 -0700 |
| commit | f950f5452b6a8131f2bb3f665b2ac141dfba367f (patch) | |
| tree | f7ee1c1e0f983f72ec21a5661e6f7a1616c18cf1 /lib/std | |
| parent | 583b843803c5851c1d9796ba301f6a602a6da3d9 (diff) | |
| download | zig-f950f5452b6a8131f2bb3f665b2ac141dfba367f.tar.gz zig-f950f5452b6a8131f2bb3f665b2ac141dfba367f.zip | |
test_runner: don't assume the GeneralPurposeAllocator config
This allows changing the config in only 1 location (std.testing)
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/special/test_runner.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/special/test_runner.zig b/lib/std/special/test_runner.zig index f4c8c6de9d..4267151638 100644 --- a/lib/std/special/test_runner.zig +++ b/lib/std/special/test_runner.zig @@ -23,7 +23,7 @@ pub fn main() anyerror!void { var leaks: usize = 0; for (test_fn_list) |test_fn, i| { - std.testing.allocator_instance = std.heap.GeneralPurposeAllocator(.{}){}; + std.testing.allocator_instance = .{}; defer { if (std.testing.allocator_instance.deinit()) { leaks += 1; |
