summaryrefslogtreecommitdiff
path: root/tests/tail-2/inotify-race2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tail-2/inotify-race2.sh')
-rwxr-xr-xtests/tail-2/inotify-race2.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tail-2/inotify-race2.sh b/tests/tail-2/inotify-race2.sh
index 89b02c6cf..19219b72e 100755
--- a/tests/tail-2/inotify-race2.sh
+++ b/tests/tail-2/inotify-race2.sh
@@ -22,6 +22,9 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ tail sleep
+grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null && is_local_dir_ . \
+ || skip_ 'inotify is not supported'
+
# Terminate any background gdb/tail process
cleanup_() {
kill $pid 2>/dev/null && wait $pid