public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] test: print_ut: Add test for %ls strings
@ 2017-09-13 22:46 Rob Clark
  2017-09-17 17:54 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Clark @ 2017-09-13 22:46 UTC (permalink / raw)
  To: u-boot

Add a simple test for long strings.

Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 test/print_ut.c | 3 +++
 1 file changed, 3 insertions(+)

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);
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] test: print_ut: Add test for %ls strings
  2017-09-13 22:46 [U-Boot] [PATCH] test: print_ut: Add test for %ls strings Rob Clark
@ 2017-09-17 17:54 ` Simon Glass
  2017-09-29 21:00   ` sjg at google.com
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2017-09-17 17:54 UTC (permalink / raw)
  To: u-boot

On 13 September 2017 at 16:46, Rob Clark <robdclark@gmail.com> wrote:
> Add a simple test for long strings.
>
> Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---
>  test/print_ut.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] test: print_ut: Add test for %ls strings
  2017-09-17 17:54 ` Simon Glass
@ 2017-09-29 21:00   ` sjg at google.com
  0 siblings, 0 replies; 3+ messages in thread
From: sjg at google.com @ 2017-09-29 21:00 UTC (permalink / raw)
  To: u-boot

On 13 September 2017 at 16:46, Rob Clark <robdclark@gmail.com> wrote:
> Add a simple test for long strings.
>
> Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---
>  test/print_ut.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-29 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-13 22:46 [U-Boot] [PATCH] test: print_ut: Add test for %ls strings Rob Clark
2017-09-17 17:54 ` Simon Glass
2017-09-29 21:00   ` sjg at google.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox