* [LTP] [PATCH 1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation
@ 2023-04-05 11:23 Avinesh Kumar
2023-04-17 9:53 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Avinesh Kumar @ 2023-04-05 11:23 UTC (permalink / raw)
To: ltp
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(-)
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'.
--
2.40.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH 1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation
2023-04-05 11:23 [LTP] [PATCH 1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation Avinesh Kumar
@ 2023-04-17 9:53 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2023-04-17 9:53 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi!
Applied, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-17 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05 11:23 [LTP] [PATCH 1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation Avinesh Kumar
2023-04-17 9:53 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox