aboutsummaryrefslogtreecommitdiff
path: root/lib/std/elf.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2022-01-13 00:35:50 -0800
committerVeikka Tuominen <git@vexu.eu>2022-04-04 15:32:43 +0300
commit6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6 (patch)
treeab350433d9238a240c4e7a59664edb94b557adf7 /lib/std/elf.zig
parent91eb1af9177d774158d888484023e3bf0be65412 (diff)
downloadzig-6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6.tar.gz
zig-6d04ab6d5be1eaa47a920aaa3989bd3515fec5d6.zip
Add `std.testing.checkAllAllocationFailures`
Adds a function that allows checking for memory leaks (and other problems) by taking advantage of the FailingAllocator and inducing failure at every allocation point within the provided `test_fn` (based on the strategy employed in the Zig parser tests, which can now use this function).
Diffstat (limited to 'lib/std/elf.zig')
0 files changed, 0 insertions, 0 deletions