public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [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

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