]> git.dujemihanovic.xyz Git - u-boot.git/commit
unit-test: cover run_commandf() by test-cases
authorEvgeny Bachinin <EABachinin@sberdevices.ru>
Mon, 20 Mar 2023 08:23:12 +0000 (11:23 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commitdd1f34a9b9a0fa7e10fef05641f54955006565e3
tree8a35e5147613006de95f748aa77ec6d8a4de5e3c
parent26f923c7cff1a46d465efcd3b8f2240523c7ab08
unit-test: cover run_commandf() by test-cases

As run_commandf() is variadic version of run_command() and just a wrapper,
hence apply similar run_command's test-cases.

Let's avoid warning about empty string passing:
warning: zero-length gnu_printf format string [-Wformat-zero-length]
   assert(run_commandf("") == 0);

Signed-off-by: Evgeny Bachinin <EABachinin@sberdevices.ru>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/command_ut.c