Commit f950f5452b

Andrew Kelley <andrew@ziglang.org>
2020-08-19 00:10:31
test_runner: don't assume the GeneralPurposeAllocator config
This allows changing the config in only 1 location (std.testing)
1 parent 583b843
Changed files (1)
lib
std
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;