diff options
author | Rob Clark <robdclark@gmail.com> | 2017-09-13 18:46:54 -0400 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-10-08 20:08:19 -0600 |
commit | 085391b22349b453aefad677853ff2d9955dd967 (patch) | |
tree | ce4c52c038a5b5e61eb16615ee4337b300d068b8 /test/print_ut.c | |
parent | 0d3aaa35b87573c229d65bc79050ab13f39d8ec2 (diff) |
test: print_ut: Add test for %ls strings
Add a simple test for long strings.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/print_ut.c')
-rw-r--r-- | test/print_ut.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/print_ut.c b/test/print_ut.c index baad289972..a42c554bef 100644 --- a/test/print_ut.c +++ b/test/print_ut.c @@ -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); |