Wrap the assert macros in ({ ... }) so they can be safely used both as right side argument as well as in conditionals without curly brackets around them. In the process, find a bunch of missing semicolons, fix them.
Reviewed-by: Simon Glass <s...@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+rene...@mailbox.org> --- Cc: Heinrich Schuchardt <heinrich.schucha...@canonical.com> Cc: Simon Glass <s...@chromium.org> Cc: Tom Rini <tr...@konsulko.com> --- V2: - Add RB from Simon - Fix missing semicolons in test/lib/kconfig.c --- include/test/ut.h | 152 +++++++++++++++++++++++++++-------------- test/cmd/pwm.c | 4 +- test/dm/acpigen.c | 2 +- test/dm/misc.c | 4 +- test/dm/phy.c | 8 +-- test/dm/scmi.c | 4 +- test/lib/kconfig.c | 10 +-- test/lib/kconfig_spl.c | 6 +- test/unicode_ut.c | 6 +- 9 files changed, 124 insertions(+), 72 deletions(-) Applied to u-boot-dm/next, thanks!