diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-16 10:03:30 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-07-23 17:37:05 -0600 |
commit | d29c1092ebe113d31bc95792644350592d1211ff (patch) | |
tree | fe02c7295061c64760edecaa6ad3d5343a328ee9 /arch/x86/cpu/qemu/qemu.c | |
parent | 71c96a8b2ab0fbaf49e7e3fe0623e5065bb3400a (diff) |
abuf: Remove code that prevented test code running
When abuf was introduced some test code was prevented from running using
a 'return 0' early in the functions. A comment said it crashed on
sandbox due to a 'bug' in realloc. Some time later a bug in abuf_realloc
was fixed but this test code was never enabled.
Remove the early 'return 0' instances so that the test code can run.
Also remove some checks that relied on the implementation details of the
U-Boot memory code as these can fail on sandbox which uses system memory
code. Besides that this code should be testing abuf implementation not
the underlying memory code which has its own tests.
Finally use a new #define for the allocs that are meant to fail to
ensure they do fail on all CI platforms.
This issue found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'arch/x86/cpu/qemu/qemu.c')
0 files changed, 0 insertions, 0 deletions