Skip to content
Snippets Groups Projects
Commit 085391b2 authored by Rob Clark's avatar Rob Clark Committed by Simon Glass
Browse files

test: print_ut: Add test for %ls strings


Add a simple test for long strings.

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 0d3aaa35
Branches
Tags
No related merge requests found
......@@ -36,6 +36,9 @@ static int do_ut_print(cmd_tbl_t *cmdtp, int flag, int argc,
snprintf(str, 0, "testing none");
assert(*str == 'x');
sprintf(big_str, "_%ls_", L"foo");
assert(!strcmp("_foo_", big_str));
/* Test the banner function */
s = display_options_get_banner(true, str, sizeof(str));
assert(s == str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment