[PATCH] abuf: Remove code that prevented test code running

Tom Rini trini at konsulko.com
Thu Jul 24 03:37:26 CEST 2025


On Wed, 16 Jul 2025 10:03:30 +0100, Andrew Goodbody wrote:

> 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.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] abuf: Remove code that prevented test code running
      commit: d29c1092ebe113d31bc95792644350592d1211ff
-- 
Tom




More information about the U-Boot mailing list