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>
This commit is contained in:
+2
-2
@@ -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> */
|
||||
|
||||
Reference in New Issue
Block a user