commit f950f5452b6a8131f2bb3f665b2ac141dfba367f (tree)
parent 583b843803c5851c1d9796ba301f6a602a6da3d9
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 18 Aug 2020 15:10:31 -0700
test_runner: don't assume the GeneralPurposeAllocator config
This allows changing the config in only 1 location (std.testing)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;