diff options
author | Marek Vasut | 2023-03-10 04:33:13 +0100 |
---|---|---|
committer | Simon Glass | 2023-03-14 16:08:51 -0600 |
commit | fa847bb409d6a07bbd923e7889b485e943d75689 (patch) | |
tree | 88aa1717fd693549dec86e30d04803be976a812e /test/cmd | |
parent | 20aaff677d8bc3cc2d529d859aa1ea65f5a4db7d (diff) |
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>
Diffstat (limited to 'test/cmd')
-rw-r--r-- | test/cmd/pwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmd/pwm.c b/test/cmd/pwm.c index 2fc0b5e4070..cf7ee0e0e65 100644 --- a/test/cmd/pwm.c +++ b/test/cmd/pwm.c @@ -27,11 +27,11 @@ static int dm_test_pwm_cmd(struct unit_test_state *uts) /* pwm <invert> <pwm_dev_num> <channel> <polarity> */ /* cros-ec-pwm doesn't support invert */ ut_asserteq(1, run_command("pwm invert 0 0 1", 0)); - ut_assert_nextline("error(-38)") + ut_assert_nextline("error(-38)"); ut_assert_console_end(); ut_asserteq(1, run_command("pwm invert 0 0 0", 0)); - ut_assert_nextline("error(-38)") + ut_assert_nextline("error(-38)"); ut_assert_console_end(); /* pwm <config> <pwm_dev_num> <channel> <period_ns> <duty_ns> */ |