test: Wrap assert macros in ({ ... }) and fix missing semicolons
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 <sjg@chromium.org> Signed-off-by:
Marek Vasut <marek.vasut+renesas@mailbox.org>
Showing
- include/test/ut.h 102 additions, 50 deletionsinclude/test/ut.h
- test/cmd/pwm.c 2 additions, 2 deletionstest/cmd/pwm.c
- test/dm/acpigen.c 1 addition, 1 deletiontest/dm/acpigen.c
- test/dm/misc.c 2 additions, 2 deletionstest/dm/misc.c
- test/dm/phy.c 4 additions, 4 deletionstest/dm/phy.c
- test/dm/scmi.c 2 additions, 2 deletionstest/dm/scmi.c
- test/lib/kconfig.c 5 additions, 5 deletionstest/lib/kconfig.c
- test/lib/kconfig_spl.c 3 additions, 3 deletionstest/lib/kconfig_spl.c
- test/unicode_ut.c 3 additions, 3 deletionstest/unicode_ut.c
Loading
Please register or sign in to comment