All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avinesh Kumar <akumar@suse.de>
To: Souta Kawahara <souta.kawahara@miraclelinux.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 1/1] fix broken example code
Date: Thu, 24 Aug 2023 12:24:00 +0530	[thread overview]
Message-ID: <2011008.QOpSKoWEuR@localhost> (raw)
In-Reply-To: <d83140dc8ddd7aec2458061e283bd9fb4fbe73ca.1692857370.git.souta.kawahara@miraclelinux.com>

Hi Souta,

Reviewed-by: Avinesh Kumar <akumar@suse.de>

On Thursday, August 24, 2023 11:42:18 AM IST Souta Kawahara wrote:
> There is double definition of 'test'.
> Fixed it.
> Also Fixed example code for the same function described after that.
> 
> Signed-off-by: Souta Kawahara <souta.kawahara@miraclelinux.com>
> ---
>  doc/c-test-api.txt | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
> index e4e88edec..2ad841038 100644
> --- a/doc/c-test-api.txt
> +++ b/doc/c-test-api.txt
> @@ -36,7 +36,7 @@ static void setup(void)
>  		tst_brk(TBROK | TERRNO, "setenv() failed");
>  }
> 
> -static void test(void)
> +static void run(void)
>  {
>  	char *ret;
> 
> @@ -64,7 +64,7 @@ next:
>  }
> 
>  static struct tst_test test = {
> -	.test_all = test,
> +	.test_all = run,
>  	.setup = setup,
>  };
>  ---------------------------------------------------------------------------
> ---- @@ -257,7 +257,7 @@ value and errno and reports the test result.
> 
>  [source,c]
>  ---------------------------------------------------------------------------
> ---- -static void test(void)
> +static void run(void)
>  {
>  	...
>  	TST_EXP_PASS(stat(fname, &statbuf), "stat(%s, ...)", fname);
> @@ -278,7 +278,7 @@ begin with a format string and then appropriate values
> to be formatted.
> 
>  [source,c]
>  ---------------------------------------------------------------------------
> ---- -static void test(void)
> +static void run(void)
>  {
>  	...
>  	TST_EXP_FD(open(fname, O_RDONLY), "open(%s, O_RDONLY)", fname);
> @@ -294,7 +294,7 @@ positive integer is returned.
> 
>  [source,c]
>  ---------------------------------------------------------------------------
> ---- -static void test(void)
> +static void run(void)
>  {
>  	...
>  	TST_EXP_FAIL(stat(fname, &statbuf), ENOENT, "stat(%s, ...)", 
fname);
> @@ -308,7 +308,7 @@ passed as the second argument.
> 
>  [source,c]
>  ---------------------------------------------------------------------------
> ---- -static void test(void)
> +static void run(void)
>  {
>  	...
>  	TST_EXP_FAIL2(msgget(key, flags), EINVAL, "msgget(%i, %i)", key, 
flags);

--
Regards,
Avinesh



-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2023-08-24  6:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24  1:33 [LTP] [PATCH v1 1/1] doc/c-test-api.txt: fix broken example code Souta Kawahara
2023-08-24  6:12 ` [LTP] [PATCH v2 1/1] " Souta Kawahara
2023-08-24  6:54   ` Avinesh Kumar [this message]

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=2011008.QOpSKoWEuR@localhost \
    --to=akumar@suse.de \
    --cc=ltp@lists.linux.it \
    --cc=souta.kawahara@miraclelinux.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.