public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 14/31] madvise02: Remove UCLINUX
Date: Thu, 11 Apr 2024 22:51:54 +0200	[thread overview]
Message-ID: <20240411205154.GB368229@pevik> (raw)
In-Reply-To: <ZhgDnR6A9oMjOr0w@yuki>

Hi Cyril,


> Hi!
> > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> > ---
> >  testcases/kernel/syscalls/madvise/madvise02.c | 25 ++++++++-----------
> >  1 file changed, 11 insertions(+), 14 deletions(-)

> > diff --git a/testcases/kernel/syscalls/madvise/madvise02.c b/testcases/kernel/syscalls/madvise/madvise02.c
> > index 90c0431c5..793bda98d 100644
> > --- a/testcases/kernel/syscalls/madvise/madvise02.c
> > +++ b/testcases/kernel/syscalls/madvise/madvise02.c
> > @@ -65,17 +65,17 @@ static struct tcase {
> >  	int exp_errno;
> >  	int skip;
> >  } tcases[] = {
> > -	{MADV_NORMAL,      "MADV_NORMAL",      &nonalign, EINVAL, 0},
> > -	{1212,             "MADV_NORMAL",      &file1,    EINVAL, 0},
> > -	{MADV_REMOVE,      "MADV_REMOVE",      &file1,    EINVAL, 0},
> > -	{MADV_DONTNEED,    "MADV_DONTNEED",    &file1,    EINVAL, 1},
> > -	{MADV_MERGEABLE,   "MADV_MERGEABLE",   &file1,    EINVAL, 0},
> > -	{MADV_UNMERGEABLE, "MADV_UNMERGEABLE", &file1,    EINVAL, 0},
> > -	{MADV_NORMAL,      "MADV_NORMAL",      &file2,    ENOMEM, 0},
> > -	{MADV_WILLNEED,    "MADV_WILLNEED",    &file2,    ENOMEM, 0},
> > -	{MADV_WILLNEED,    "MADV_WILLNEED",    &tmp_addr,  EBADF, 0},
> > -	{MADV_FREE,        "MADV_FREE",        &file1,    EINVAL, 0},
> > -	{MADV_WIPEONFORK,  "MADV_WIPEONFORK",  &file1,    EINVAL, 0},
> > +	{MADV_NORMAL,      "MADV_NORMAL",      &nonalign, EINVAL},
> > +	{1212,             "MADV_NORMAL",      &file1,    EINVAL},
> > +	{MADV_REMOVE,      "MADV_REMOVE",      &file1,    EINVAL},
> > +	{MADV_DONTNEED,    "MADV_DONTNEED",    &file1,    EINVAL},
> > +	{MADV_MERGEABLE,   "MADV_MERGEABLE",   &file1,    EINVAL},
> > +	{MADV_UNMERGEABLE, "MADV_UNMERGEABLE", &file1,    EINVAL},
> > +	{MADV_NORMAL,      "MADV_NORMAL",      &file2,    ENOMEM},
> > +	{MADV_WILLNEED,    "MADV_WILLNEED",    &file2,    ENOMEM},
> > +	{MADV_WILLNEED,    "MADV_WILLNEED",    &tmp_addr,  EBADF},
> > +	{MADV_FREE,        "MADV_FREE",        &file1,    EINVAL},
> > +	{MADV_WIPEONFORK,  "MADV_WIPEONFORK",  &file1,    EINVAL},
> >  	{MADV_WIPEONFORK,  "MADV_WIPEONFORK shared_anon", &shared_anon, EINVAL, 0},
> >  	{MADV_WIPEONFORK,  "MADV_WIPEONFORK private file backed", &file3, EINVAL, 0},

> You should have removed these two zeroes as well, it's a bit confusing
> that they stayed in there.

I wonder why I left these two. I'll amend the patch with the diff bellow.

Kind regards,
Petr

+++ testcases/kernel/syscalls/madvise/madvise02.c
@@ -76,8 +76,8 @@ static struct tcase {
 	{MADV_WILLNEED,    "MADV_WILLNEED",    &tmp_addr,  EBADF},
 	{MADV_FREE,        "MADV_FREE",        &file1,    EINVAL},
 	{MADV_WIPEONFORK,  "MADV_WIPEONFORK",  &file1,    EINVAL},
-	{MADV_WIPEONFORK,  "MADV_WIPEONFORK shared_anon", &shared_anon, EINVAL, 0},
-	{MADV_WIPEONFORK,  "MADV_WIPEONFORK private file backed", &file3, EINVAL, 0},
+	{MADV_WIPEONFORK,  "MADV_WIPEONFORK shared_anon", &shared_anon, EINVAL},
+	{MADV_WIPEONFORK,  "MADV_WIPEONFORK private file backed", &file3, EINVAL},
 };
 
 static void tcases_filter(void)

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

  reply	other threads:[~2024-04-11 20:52 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-11 14:29 [LTP] [PATCH 00/31] Remove UCLINUX (nommu support) from LTP legacy C API Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 01/31] m4: Remove UCLINUX (nommu detection) Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 02/31] make: Remove WITH_POWER_MANAGEMENT_TESTSUITE Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 03/31] make: Remove UCLINUX (nommu detection) Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 04/31] test.h: Remove MAP_PRIVATE_EXCEPT_UCLINUX Petr Vorel
2024-04-11 14:29 ` [LTP] [PATCH 05/31] tree: Remove FORK_OR_VFORK and tst_vfork() Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 06/31] lib/parse_opts.c: Remove UCLINUX Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 07/31] tlibio.c: " Petr Vorel
2024-04-11 14:59   ` Cyril Hrubis
2024-04-11 20:46     ` Petr Vorel
2024-04-12  7:36       ` Cyril Hrubis
2024-04-12  8:32         ` Andrea Cervesato via ltp
2024-04-12  8:57           ` Cyril Hrubis
2024-04-12  9:08             ` Andrea Cervesato via ltp
2024-04-11 14:30 ` [LTP] [PATCH 08/31] clone02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 09/31] connect01: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 10/31] creat06: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 11/31] fcntl: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 12/31] semctl06: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 13/31] kill: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 14/31] madvise02: " Petr Vorel
2024-04-11 15:37   ` Cyril Hrubis
2024-04-11 20:51     ` Petr Vorel [this message]
2024-04-11 14:30 ` [LTP] [PATCH 15/31] mlockall: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 16/31] munmap: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 17/31] writev05: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 18/31] pipe: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 19/31] pause: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 20/31] recv*: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 21/31] send*: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 22/31] sock*: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 23/31] read02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 24/31] setgroups04: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 25/31] setsid01: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 26/31] sigrelse01: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 27/31] sysinfo02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 28/31] ustat02: " Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 29/31] lib: Remove -C option and self_exec.c Petr Vorel
2024-04-11 16:02   ` Cyril Hrubis
2024-04-11 20:56     ` Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 30/31] Remove doc/old/nommu-notes.txt Petr Vorel
2024-04-11 14:30 ` [LTP] [PATCH 31/31] doc: UCLINUX has been removed Petr Vorel
2024-05-03 15:39 ` [LTP] [PATCH 00/31] Remove UCLINUX (nommu support) from LTP legacy C API 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=20240411205154.GB368229@pevik \
    --to=pvorel@suse.cz \
    --cc=chrubis@suse.cz \
    --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