Andrew Geissler | e34f896 | 2021-04-15 15:53:51 -0500 | [diff] [blame] | 1 | From 194e199ce08acc2192f6a63420ff24d9064666e5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yi Fan Yu <yifan.yu@windriver.com> |
| 3 | Date: Sat, 27 Mar 2021 19:18:25 -0400 |
| 4 | Subject: [PATCH] tests: disable the check for inotify |
| 5 | |
| 6 | We don't need to check inotify.h. |
| 7 | Assume it is present since it is part of the linux kernel |
| 8 | since 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 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 15 | Upstream-Status: Inappropriate [OE-specific] |
Andrew Geissler | e34f896 | 2021-04-15 15:53:51 -0500 | [diff] [blame] | 16 | |
| 17 | Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> |
| 18 | --- |
| 19 | tests/diag.sh | 4 ++-- |
| 20 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 21 | |
| 22 | diff --git a/tests/diag.sh b/tests/diag.sh |
| 23 | index 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 | -- |
| 45 | 2.29.2 |
| 46 | |