1From 194e199ce08acc2192f6a63420ff24d9064666e5 Mon Sep 17 00:00:00 2001 2From: Yi Fan Yu <yifan.yu@windriver.com> 3Date: Sat, 27 Mar 2021 19:18:25 -0400 4Subject: [PATCH] tests: disable the check for inotify 5 6We don't need to check inotify.h. 7Assume it is present since it is part of the linux kernel 8since 2.6.13 [1]. 9 10[1](https://kernelnewbies.org/Linux_2_6_13) 11 12(it would require installing the libc headers otherwise, 13 for the test to detect /usr/include/sys/inotify.h.) 14 15Upstream-Status: Inappropriate[OE-specific] 16 17Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> 18--- 19 tests/diag.sh | 4 ++-- 20 1 file changed, 2 insertions(+), 2 deletions(-) 21 22diff --git a/tests/diag.sh b/tests/diag.sh 23index 6cd60ea88..7424f48c5 100755 24--- a/tests/diag.sh 25+++ b/tests/diag.sh 26@@ -2672,7 +2672,7 @@ case $1 in 27 fi 28 ;; 29 'check-inotify') # Check for inotify/fen support 30- if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then 31+ if true; then 32 echo [inotify mode] 33 elif [ -n "$(find /usr/include/sys/ -name 'port.h' -print -quit)" ]; then 34 grep -qF "PORT_SOURCE_FILE" < /usr/include/sys/port.h 35@@ -2687,7 +2687,7 @@ case $1 in 36 fi 37 ;; 38 'check-inotify-only') # Check for ONLY inotify support 39- if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then 40+ if true; then 41 echo [inotify mode] 42 else 43 echo [inotify not supported, skipping...] 44-- 452.29.2 46 47