[PATCH] bdinfo: Correct use of assertions

Marek Vasut marex at denx.de
Wed Jul 12 01:10:19 CEST 2023


On 7/12/23 00:51, 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.

So basically ut_assert_nextline() does not automatically bail, you have 
to make it expand to return -ERRNO and check for that errno again with 
ut_assertok() at the callsite ?


More information about the U-Boot mailing list