diff options
| author | Rob Clark <[email protected]> | 2017-09-13 18:46:54 -0400 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2017-10-08 20:08:19 -0600 |
| commit | 085391b22349b453aefad677853ff2d9955dd967 (patch) | |
| tree | ce4c52c038a5b5e61eb16615ee4337b300d068b8 /test | |
| parent | 0d3aaa35b87573c229d65bc79050ab13f39d8ec2 (diff) | |
test: print_ut: Add test for %ls strings
Add a simple test for long strings.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test')
| -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 baad2899725..a42c554bef8 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); |
