aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-18 15:10:31 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-08-18 15:10:31 -0700
commitf950f5452b6a8131f2bb3f665b2ac141dfba367f (patch)
treef7ee1c1e0f983f72ec21a5661e6f7a1616c18cf1 /lib
parent583b843803c5851c1d9796ba301f6a602a6da3d9 (diff)
downloadzig-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')
-rw-r--r--lib/std/special/test_runner.zig2
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;