commit | 0a5e0697db5e11be1eb6c0b9bff3f0b8e9052053 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jul 11 20:46:30 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 14 12:54:50 2023 -0400 |
tree | 510dcc21b90343675d6930b45561f81ab572c1e1 | |
parent | 2d552e78c9e9cd01b84bae82d4d243b477cfdf3e [diff] |
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>