* [LTP] [PATCH] fanotify14: Revert broken flag support check
@ 2023-11-15 10:41 Martin Doucha
2023-11-15 13:10 ` Marius Kittler
2023-11-21 11:55 ` Amir Goldstein
0 siblings, 2 replies; 4+ messages in thread
From: Martin Doucha @ 2023-11-15 10:41 UTC (permalink / raw)
To: ltp
Reverts part of 35f77e75 which obviously doesn't belong in a memcontrol
test patch.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/kernel/syscalls/fanotify/fanotify14.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/fanotify/fanotify14.c b/testcases/kernel/syscalls/fanotify/fanotify14.c
index 908a6638a..0bb789188 100644
--- a/testcases/kernel/syscalls/fanotify/fanotify14.c
+++ b/testcases/kernel/syscalls/fanotify/fanotify14.c
@@ -246,8 +246,7 @@ static void do_test(unsigned int number)
tst_res(TINFO, "Test case %d: fanotify_init(%s, O_RDONLY)", number,
tc->init.desc);
- //if (tc->init.flags & ~supported_init_flags) {
- if (tc->init.flags == supported_init_flags) {
+ if (tc->init.flags & ~supported_init_flags) {
tst_res(TCONF, "Unsupported init flags");
return;
}
--
2.42.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [LTP] [PATCH] fanotify14: Revert broken flag support check
2023-11-15 10:41 [LTP] [PATCH] fanotify14: Revert broken flag support check Martin Doucha
@ 2023-11-15 13:10 ` Marius Kittler
2023-11-21 11:55 ` Amir Goldstein
1 sibling, 0 replies; 4+ messages in thread
From: Marius Kittler @ 2023-11-15 13:10 UTC (permalink / raw)
To: ltp
Hi,
that change was definitely not part of the memcontrol-related patch I sent to
this mailinglist.
I think this change was part of another patchset I sent to the list. However,
this patchset definitely didn't contain out-commented code so someone was
editing it before pushing. When I remember correctly, I only changed the flags
as it was suggested to me as a review comment (and I personally wouldn't have
done this change in the first place).
So I'm fine with reverting the change.
Reviewed-by: Marius Kittler <mkittler@suse.de>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH] fanotify14: Revert broken flag support check
2023-11-15 10:41 [LTP] [PATCH] fanotify14: Revert broken flag support check Martin Doucha
2023-11-15 13:10 ` Marius Kittler
@ 2023-11-21 11:55 ` Amir Goldstein
2023-11-21 12:08 ` Petr Vorel
1 sibling, 1 reply; 4+ messages in thread
From: Amir Goldstein @ 2023-11-21 11:55 UTC (permalink / raw)
To: Martin Doucha, Petr Vorel; +Cc: ltp
[cc Petr]
On Wed, Nov 15, 2023 at 12:41 PM Martin Doucha <mdoucha@suse.cz> wrote:
>
> Reverts part of 35f77e75 which obviously doesn't belong in a memcontrol
> test patch.
>
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
> ---
> testcases/kernel/syscalls/fanotify/fanotify14.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/fanotify/fanotify14.c b/testcases/kernel/syscalls/fanotify/fanotify14.c
> index 908a6638a..0bb789188 100644
> --- a/testcases/kernel/syscalls/fanotify/fanotify14.c
> +++ b/testcases/kernel/syscalls/fanotify/fanotify14.c
> @@ -246,8 +246,7 @@ static void do_test(unsigned int number)
> tst_res(TINFO, "Test case %d: fanotify_init(%s, O_RDONLY)", number,
> tc->init.desc);
>
> - //if (tc->init.flags & ~supported_init_flags) {
> - if (tc->init.flags == supported_init_flags) {
> + if (tc->init.flags & ~supported_init_flags) {
> tst_res(TCONF, "Unsupported init flags");
> return;
> }
> --
> 2.42.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-21 12:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 10:41 [LTP] [PATCH] fanotify14: Revert broken flag support check Martin Doucha
2023-11-15 13:10 ` Marius Kittler
2023-11-21 11:55 ` Amir Goldstein
2023-11-21 12:08 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox