diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-11 14:23:23 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-11 14:23:23 -0400 |
commit | ac14bc41692a55d5b53f73a0a5b33de2424c2cb6 (patch) | |
tree | 9b4e0a28a7b27261c187573b87e4926e0fab795a /test/unicode_ut.c | |
parent | bb488ac34d9fbb892d870b0cbeabdbc5dc432653 (diff) | |
parent | bdb15776f6d93a1fe7902346db06a2a9fd43381e (diff) |
Merge tag 'efi-2020-07-rc2-4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-07-rc2-4
This pull request comprises:
* bug fixes
* documentation fixes
* a new function to determine u16 string sizes and its unit test
Diffstat (limited to 'test/unicode_ut.c')
-rw-r--r-- | test/unicode_ut.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 4d99c20bc0..d8b4aa9b44 100644 --- a/test/unicode_ut.c +++ b/test/unicode_ut.c @@ -581,6 +581,16 @@ static int unicode_test_u16_strncmp(struct unit_test_state *uts) } UNICODE_TEST(unicode_test_u16_strncmp); +static int unicode_test_u16_strsize(struct unit_test_state *uts) +{ + ut_asserteq_64(u16_strsize(c1), 14); + ut_asserteq_64(u16_strsize(c2), 18); + ut_asserteq_64(u16_strsize(c3), 8); + ut_asserteq_64(u16_strsize(c4), 14); + return 0; +} +UNICODE_TEST(unicode_test_u16_strsize); + int do_ut_unicode(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { struct unit_test *tests = ll_entry_start(struct unit_test, unicode_test); |