[PATCH v2 1/2] test: Wrap assert macros in ({ ... }) and fix missing semicolons

Simon Glass sjg at chromium.org
Fri Mar 10 17:10:55 CET 2023


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 at chromium.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
Cc: Simon Glass <sjg at chromium.org>
Cc: Tom Rini <trini at 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!


More information about the U-Boot mailing list