MINOR: debug: Add an option that causes random allocation failures.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 29 Jan 2019 14:20:16 +0000 (15:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 31 Jan 2019 18:38:25 +0000 (19:38 +0100)
commitdc21ff778bfa05553264fc15173c25a04046e09f
tree7a66fa13a23f8f462b77b5d2a5266d07a4f4513f
parent9c9da5ee89272282ea64341e856d1ece1367e737
MINOR: debug: Add an option that causes random allocation failures.

When compiling with DEBUG_FAIL_ALLOC, add a new option, tune.fail-alloc,
that gives the percentage of chances an allocation fails.
This is useful to check that allocation failures are always handled
gracefully.
doc/configuration.txt
include/common/config.h
src/memory.c