[LTP] [PATCH 1/6] syscalls/fcntl: New test for DN_RENAME (dnotify)
Petr Vorel
pvorel@suse.cz
Thu Apr 14 21:03:05 CEST 2022
Hi Amir,
> Sorry forgot to run it with -i
> Here is the fix if you want to apply it yourself:
> --- a/testcases/kernel/syscalls/fcntl/fcntl39.c
> +++ b/testcases/kernel/syscalls/fcntl/fcntl39.c
> @@ -89,6 +89,12 @@ static void verify_dnotify(void)
> SAFE_CLOSE(parent_fd);
> SAFE_CLOSE(subdir_fd);
> +
> + /* Cleanup before rerun */
> + SAFE_RENAME(TEST_DIR2 "/" TEST_FILE, TEST_FILE);
> + SAFE_RENAME(TEST_DIR2, TEST_DIR);
> + got_parent_event = 0;
> + got_subdir_event = 0;
> }
Thanks for a quick fix, patch merged (with minor changes to keep checkpatch happy).
Kind regards,
Petr
> Thanks,
> Amir.
More information about the ltp
mailing list