| author | |
| committer | |
| log | f950f5452b6a8131f2bb3f665b2ac141dfba367f |
| tree | f7ee1c1e0f983f72ec21a5661e6f7a1616c18cf1 |
| parent | 583b843803c5851c1d9796ba301f6a602a6da3d9 |
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 { |
| 23 | 23 | |
| 24 | 24 | var leaks: usize = 0; |
| 25 | 25 | for (test_fn_list) |test_fn, i| { |
| 26 | std.testing.allocator_instance = std.heap.GeneralPurposeAllocator(.{}){}; | |
| 26 | std.testing.allocator_instance = .{}; | |
| 27 | 27 | defer { |
| 28 | 28 | if (std.testing.allocator_instance.deinit()) { |
| 29 | 29 | leaks += 1; |