summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-12-20 12:50:38 -0500
committerTom Rini <[email protected]>2022-12-20 12:50:48 -0500
commit1154e965d0bd16cf438afdaa4118e1455fd71a44 (patch)
tree9d862e44a520ea50e1cb8b15fd1ffd5675c5a018 /test
parent566bc672a7474f4bf67b29514121ed41db21ed71 (diff)
parentad50ca5019ae2b4f6ad5ffb4d62808b640f7b8aa (diff)
Merge tag 'efi-2023-01-rc5' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2023-01-rc5 UEFI: * Improve parameter checking in efi_get_next_variable_name_mem() * Fix a bugs in management of security database via the eficonfig command Other: * Allow sound command to play multiple sounds
Diffstat (limited to 'test')
-rw-r--r--test/unicode_ut.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unicode_ut.c b/test/unicode_ut.c
index d104bd5997f..3547aeffe79 100644
--- a/test/unicode_ut.c
+++ b/test/unicode_ut.c
@@ -67,6 +67,17 @@ static int unicode_test_u16_strlen(struct unit_test_state *uts)
}
UNICODE_TEST(unicode_test_u16_strlen);
+static int unicode_test_u16_strnlen(struct unit_test_state *uts)
+{
+ ut_asserteq(0, u16_strnlen(c1, 0));
+ ut_asserteq(4, u16_strnlen(c1, 4));
+ ut_asserteq(6, u16_strnlen(c1, 6));
+ ut_asserteq(6, u16_strnlen(c1, 7));
+
+ return 0;
+}
+UNICODE_TEST(unicode_test_u16_strnlen);
+
static int unicode_test_u16_strdup(struct unit_test_state *uts)
{
u16 *copy = u16_strdup(c4);