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

Amir Goldstein amir73il@gmail.com
Tue Nov 21 12:55:55 CET 2023


[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


More information about the ltp mailing list