]> git.baikalelectronics.ru Git - uboot.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)
commit21b31005fe82f328a49ca0075c634cb709975a4e
tree8a35e5147613006de95f748aa77ec6d8a4de5e3c
parentfa0214cba5416f367d07131ae01c4fbafa96532a
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