aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing/leak_count_allocator.zig
diff options
context:
space:
mode:
authorBenjamin Feng <benjamin.feng@glassdoor.com>2020-01-29 21:22:01 -0600
committerBenjamin Feng <benjamin.feng@glassdoor.com>2020-01-29 22:22:00 -0600
commitb077f3ab7d55374d2770336db236ecd7b18238a8 (patch)
treed1a9453a3faf5e019afd75f3d7b59a0162ae1142 /lib/std/testing/leak_count_allocator.zig
parent70ad84c8209ae7ab14472f77f9452820bc47c30e (diff)
downloadzig-b077f3ab7d55374d2770336db236ecd7b18238a8.tar.gz
zig-b077f3ab7d55374d2770336db236ecd7b18238a8.zip
Promoted "leak_count_allocator" to the main testing.allocator
Diffstat (limited to 'lib/std/testing/leak_count_allocator.zig')
-rw-r--r--lib/std/testing/leak_count_allocator.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/testing/leak_count_allocator.zig b/lib/std/testing/leak_count_allocator.zig
index 84c3248178..6cdcfa2678 100644
--- a/lib/std/testing/leak_count_allocator.zig
+++ b/lib/std/testing/leak_count_allocator.zig
@@ -39,7 +39,7 @@ pub const LeakCountAllocator = struct {
pub fn validate(self: LeakCountAllocator) !void {
if (self.count > 0) {
- std.debug.warn("Detected leaked allocations without matching free: {}\n", .{self.count});
+ std.debug.warn("error - detected leaked allocations without matching free: {}\n", .{self.count});
return error.Leak;
}
}