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.

========
[EMAIL PROTECTED] 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

[EMAIL PROTECTED] 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
===============
[EMAIL PROTECTED] 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

[EMAIL PROTECTED] 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
===============
[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]>
-----

Thanks,
-- Jin Bing Guo


--- cvs_ltp.orig/testcases/kernel/syscalls/inotify/inotify01.c	2008-10-15 23:17:36.000000000 -0400
+++ cvs_ltp/testcases/kernel/syscalls/inotify/inotify01.c	2008-10-27 14:11:56.000000000 -0400
@@ -330,8 +330,9 @@ main()
 #ifndef __NR_inotify_init
     tst_resm(TWARN, "This test needs a kernel that has inotify syscall.");
     tst_resm(TWARN, "Inotify syscall can be found at kernel 2.6.13 or higher.");
+    return 0;
 #endif
-#ifndef HAS_SYS_INOTIFY:
+#ifndef HAS_SYS_INOTIFY
     tst_resm(TBROK, "can't find header sys/inotify.h");
     return 1;
 #endif
--- cvs_ltp.orig/testcases/kernel/syscalls/inotify/inotify02.c	2008-10-15 23:17:36.000000000 -0400
+++ cvs_ltp/testcases/kernel/syscalls/inotify/inotify02.c	2008-10-27 14:12:08.000000000 -0400
@@ -371,8 +371,9 @@ main()
 #ifndef __NR_inotify_init
     tst_resm(TWARN, "This test needs a kernel that has inotify syscall.");
     tst_resm(TWARN, "Inotify syscall can be found at kernel 2.6.13 or higher.");
+    return 0;
 #endif
-#ifndef HAS_SYS_INOTIFY:
+#ifndef HAS_SYS_INOTIFY
     tst_resm(TBROK, "can't find header sys/inotify.h");
     return 1;
 #endif
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to