From: Jin B. G. <gu...@li...> - 2008-10-28 09:34:02
|
The RHEL4.7 (kernel-2.6.9-78.EL) does not support inotify system calls. So it should send out an information and return 0. ======== [root@aop55Alp3 cvs_ltp.orig]# ./runltp -q -s inotify01 Running tests....... inotify01 0 WARN : This test needs a kernel that has inotify syscall. inotify01 0 WARN : Inotify syscall can be found at kernel 2.6.13 or higher. inotify01 1 BROK : can't find header sys/inotify.h INFO: pan reported some tests FAIL [root@aop55Alp3 cvs_ltp.orig]# ./runltp -q -s inotify02 Running tests....... inotify02 0 WARN : This test needs a kernel that has inotify syscall. inotify02 0 WARN : Inotify syscall can be found at kernel 2.6.13 or higher. inotify02 1 BROK : can't find header sys/inotify.h INFO: pan reported some tests FAIL =============== After patching =============== [root@aop55Alp3 cvs_ltp]# ./runltp -q -s inotify01 Running tests....... inotify01 0 WARN : This test needs a kernel that has inotify syscall. inotify01 0 WARN : Inotify syscall can be found at kernel 2.6.13 or higher. INFO: pan reported all tests PASS [root@aop55Alp3 cvs_ltp]# ./runltp -q -s inotify02 Running tests....... inotify02 0 WARN : This test needs a kernel that has inotify syscall. inotify02 0 WARN : Inotify syscall can be found at kernel 2.6.13 or higher. INFO: pan reported all tests PASS In additoin, tha patch also fixed a compile warning: =============== Before patching =============== [root@aop55Alp3 inotify]# make cc -I../../../../include -Wall inotify01.c -L../../../../lib -lltp -o inotify01 inotify01.c:334:24: warning: extra tokens at end of #ifndef directive cc -I../../../../include -Wall inotify02.c -L../../../../lib -lltp -o inotify02 inotify02.c:375:24: warning: extra tokens at end of #ifndef directive Signed-off-by: Jin Bing Guo <gu...@li...> ----- Thanks, -- Jin Bing Guo |