Skip to contentSkip to conversation

test: fix typo in cmd_ut_category() description

PATCH New Heinrich Schuchardt 3 participants 3 messages Aug 27, 2018 – Aug 31, 2018

lore
Share & tools
lore
#0 lore raw

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.

---
 include/test/suites.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/test/suites.h +1 -1
index 8e4eac60eb..abb3a4b816 100644
@@ -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
#2 lore raw

PATCH 1/1 test: fix typo in cmd_ut_category() description

In reply to Heinrich Schuchardt
Quoted 7 lines · Heinrich Schuchardt

argc = 1: all tests are run
argc > 1: only argv[1] is run

So we need argc >= 1.

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>