[PATCH v1 2/4] unit-test: cover run_commandf() by test-cases

Simon Glass sjg at chromium.org
Fri Mar 10 21:49:49 CET 2023


On Fri, 10 Mar 2023 at 10:55, Evgeny Bachinin <EABachinin at sberdevices.ru> wrote:
>
> 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 at sberdevices.ru>
> ---
>  test/command_ut.c | 35 +++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
>

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


More information about the U-Boot mailing list