]> git.baikalelectronics.ru Git - uboot.git/commit
bdinfo: Correct use of assertions
authorSimon Glass <sjg@chromium.org>
Wed, 12 Jul 2023 02:46:30 +0000 (20:46 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 16:54:50 +0000 (12:54 -0400)
commitb9aa1c8a9e7f58316f62646931bacd780262ace6
tree510dcc21b90343675d6930b45561f81ab572c1e1
parent3c3ddc47862f918fd95d26cf4f8faad4aa1623e9
bdinfo: Correct use of assertions

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@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
test/cmd/bdinfo.c