]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: prefer require_inotify_supported_ to file system check
authorCollin Funk <collin.funk1@gmail.com>
Sun, 26 Jul 2026 23:41:35 +0000 (16:41 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 26 Jul 2026 23:52:54 +0000 (16:52 -0700)
* tests/tail/inotify-rotate-resources.sh: Use require_inotify_supported_
instead of require_local_dir_ and the recently added check for
overlayfs.
Suggested by Pádraig Brady.

tests/tail/inotify-rotate-resources.sh

index 8a3eed3bde59ad36484273eb5d5a57079e7867d1..e1aeafbc2d13937c12c2cc27315f70fbaa4363e8 100755 (executable)
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ tail
 
-# Inotify not used on remote file systems
-require_local_dir_
-
-# We don't use inotify on overlayfs.
-# See the comments in human_fstype from src/stat.c.
-test "$(stat -f -c "%T" .)" != overlayfs \
-  || skip_ 'inotify is not used on overlayfs'
+require_inotify_supported_
 
 grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
   || skip_ 'inotify required'