[U-Boot] [PATCH 1/1] test: fix typo in cmd_ut_category() description

argc = 1: all tests are run argc > 1: only argv[1] is run
So we need argc >= 1.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- include/test/suites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/test/suites.h b/include/test/suites.h index 8e4eac60eb..abb3a4b816 100644 --- a/include/test/suites.h +++ b/include/test/suites.h @@ -15,7 +15,7 @@ struct unit_test; * @name: Category name * @tests: List of tests to run * @n_ents: Number of tests in @tests - * @argc: Argument count provided. Must be <= 1. If this is 1 then all + * @argc: Argument count provided. Must be >= 1. If this is 1 then all * tests are run, otherwise only the one named @argv[1] is run. * @argv: Arguments: argv[1] is the test to run (if @argc >= 2) * @return 0 if OK, CMD_RET_FAILURE on failure

On 27 August 2018 at 14:04, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
argc = 1: all tests are run argc > 1: only argv[1] is run
So we need argc >= 1.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
include/test/suites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

On Mon, Aug 27, 2018 at 10:04:10PM +0200, Heinrich Schuchardt wrote:
argc = 1: all tests are run argc > 1: only argv[1] is run
So we need argc >= 1.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot/master, thanks!
participants (3)
-
Heinrich Schuchardt
-
Simon Glass
-
Tom Rini