[LTP] [PATCH] fanotify14: Revert broken flag support check

Martin Doucha mdoucha@suse.cz
Wed Nov 15 11:41:47 CET 2023


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



More information about the ltp mailing list