commit | 1a3e39ba78a8f0e56784f2b565ab0a7932d30109 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Sep 06 20:27:00 2022 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Sep 29 16:07:58 2022 -0400 |
tree | 9f0e6f82f9bdc3fac8a8c64e2850c14002cd6a2a | |
parent | 7f9b580b2d7cfdd4b21a6b64b1e50e0053e38d0f [diff] |
test: Support testing malloc() failures It is helpful to test that out-of-memory checks work correctly in code that calls malloc(). Add a simple way to force failure after a given number of malloc() calls. Fix a header guard to avoid a build error on sandbox_vpl. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Sean Anderson <seanga2@gmail.com>