testcases/kernel/syscalls/inotify/inotify03.c
should warn that the drive used for testing will be formatted and this will result in data loss. Only after confirmation by the user the test should continue.
Furthermore, please, add the test to
testcases/kernel/syscalls/inotify/README