public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Avinesh Kumar <akumar@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation
Date: Wed,  5 Apr 2023 16:53:44 +0530	[thread overview]
Message-ID: <20230405112344.7391-1-akumar@suse.de> (raw)

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

             reply	other threads:[~2023-04-05 11:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05 11:23 Avinesh Kumar [this message]
2023-04-17  9:53 ` [LTP] [PATCH 1/1] doc/c-test-api.txt: Correct TST_EXP_POSITIVE documentation Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230405112344.7391-1-akumar@suse.de \
    --to=akumar@suse.de \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox