Re: [PATCH v2] bdinfo: Correct use of assertions

2023-07-14 Thread Tom Rini
On Tue, 11 Jul 2023 20:46:30 -0600, 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 ne

Re: [PATCH v2] bdinfo: Correct use of assertions

2023-07-12 Thread Marek Vasut
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

[PATCH v2] bdinfo: Correct use of assertions

2023-07-11 Thread Simon Glass
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 i