diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-03-10 04:33:13 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-03-14 16:08:51 -0600 |
commit | fa847bb409d6a07bbd923e7889b485e943d75689 (patch) | |
tree | 88aa1717fd693549dec86e30d04803be976a812e /test/unicode_ut.c | |
parent | 20aaff677d8bc3cc2d529d859aa1ea65f5a4db7d (diff) | |
download | u-boot-fa847bb409d6a07bbd923e7889b485e943d75689.zip u-boot-fa847bb409d6a07bbd923e7889b485e943d75689.tar.gz u-boot-fa847bb409d6a07bbd923e7889b485e943d75689.tar.bz2 |
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/unicode_ut.c')
-rw-r--r-- | test/unicode_ut.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 382b796..b27d711 100644 --- a/test/unicode_ut.c +++ b/test/unicode_ut.c @@ -192,7 +192,7 @@ static int unicode_test_utf8_get(struct unit_test_state *uts) if (!code) break; } - ut_asserteq_ptr(s, d2 + 9) + ut_asserteq_ptr(s, d2 + 9); /* Check characters less than 0x10000 */ s = d3; @@ -203,7 +203,7 @@ static int unicode_test_utf8_get(struct unit_test_state *uts) if (!code) break; } - ut_asserteq_ptr(s, d3 + 9) + ut_asserteq_ptr(s, d3 + 9); /* Check character greater 0xffff */ s = d4; @@ -228,7 +228,7 @@ static int unicode_test_utf8_put(struct unit_test_state *uts) /* Commercial at, translates to one character */ pos = buffer; - ut_assert(!utf8_put('@', &pos)) + ut_assert(!utf8_put('@', &pos)); ut_asserteq(1, pos - buffer); ut_asserteq('@', buffer[0]); ut_assert(!buffer[1]); |