[PATCH v2] bdinfo: Correct use of assertions

Marek Vasut marex at denx.de
Wed Jul 12 09:16:04 CEST 2023


On 7/12/23 04:46, Simon Glass wrote:
> This test was written for the incorrect use of assertions. Update it to
> build with the previous approach, where tests fail at the first
> assertion.
> 
> All assertion functions return 0 on success and non-zero on failure.
> They can be nested into functions simply by declaring a function that
> returns an int and using ut_assertok() to call it.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reviewed-by: Marek Vasut <marex at denx.de>

Thanks


More information about the U-Boot mailing list