test: fix typo in cmd_ut_category() description
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 <[email protected]>
--- include/test/suites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/test/suites.h +1 -1
@@ -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
Signature · 1 line
2.18.0
PATCH 1/1 test: fix typo in cmd_ut_category() description
Quoted 10 lines · Heinrich Schuchardt
argc = 1: all tests are run
argc > 1: only argv[1] is runSo we need argc >= 1.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/test/suites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 test: fix typo in cmd_ut_category() description
In reply to Heinrich SchuchardtQuoted 7 lines · Heinrich Schuchardt
argc = 1: all tests are run
argc > 1: only argv[1] is runSo we need argc >= 1.
Signed-off-by Heinrich Schuchardt <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180831/508c2b9a/attachment.sig>