diff mbox series

[1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation

Message ID 20230405112344.7391-1-akumar@suse.de
State Accepted
Headers show
Series [1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation | expand

Commit Message

Avinesh Kumar April 5, 2023, 11:23 a.m. UTC
TST_EXP_POSITIVE() macro returns PASS result for zero value also.

If we have any test scenarios which should pass only for values
greater than zero, then we should rename this to something like
TST_EXP_NON_NEG() and add new macro for only >0 values.

Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
 doc/c-test-api.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Cyril Hrubis April 17, 2023, 9:53 a.m. UTC | #1
Hi!
Applied, thanks.
diff mbox series

Patch

diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
index 11f87def2..6f12fa63b 100644
--- a/doc/c-test-api.txt
+++ b/doc/c-test-api.txt
@@ -353,8 +353,8 @@  if (!TST_PASS)
 	return;
 -------------------------------------------------------------------------------
 
-If the return value of 'wait' is positive. This macro will print a pass result
-and set +TST_PASS+ appropriately. If the return value is zero or negative, then
+If the return value of 'wait' is positive or zero, this macro will print a pass
+result and set +TST_PASS+ appropriately. If the return value is negative, then
 it will print fail.  There are many similar macros to those shown here, please
 see 'tst_test_macros.h'.