Hi,

When I tested the inotify02 on ppc64, it passed all tests and returned
1 with an unnecessary event. 

---------
Running tests.......
<<<test_start>>>
tag=inotify02 stime=1222503205
cmdline="inotify02"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
incrementing stop
inotify02    1  PASS  :  get event: wd=1 mask=40000004 cookie=0 len=0
name=""
inotify02    2  PASS  :  get event: wd=1 mask=100 cookie=0 len=16
name="test_file1"
inotify02    3  PASS  :  get event: wd=1 mask=20 cookie=0 len=16
name="test_file1"
inotify02    4  PASS  :  get event: wd=1 mask=8 cookie=0 len=16
name="test_file1"
inotify02    5  PASS  :  get event: wd=1 mask=40 cookie=863338 len=16
name="test_file1"
inotify02    6  PASS  :  get event: wd=1 mask=80 cookie=863338 len=16
name="test_file2"
inotify02    7  PASS  :  get event: wd=1 mask=800 cookie=0 len=0 name=""
inotify02    8  PASS  :  get event: wd=1 mask=200 cookie=0 len=16
name="test_file2"
inotify02    9  PASS  :  get event: wd=1 mask=800 cookie=0 len=0 name=""
inotify02   10  FAIL  :  get unnecessary event: wd=1 mask=800 cookie=0
len=0name=""
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>
-------------

After looking into the code, there were 9 tests in sum in inotify02. So I
think the unnecessary event should not be regarded as a failure when the 
9 tests all passed.

Same problem was in inotify01. The patches fixed them.

Signed-off-by: Jin Bing Guo <[EMAIL PROTECTED]>
-----

Thanks,
-- Jin Bing Guo
--- cvs_ltp.orig/testcases/kernel/syscalls/inotify/inotify01.c	2008-09-03 03:08:02.000000000 -0500
+++ cvs_ltp/testcases/kernel/syscalls/inotify/inotify01.c	2008-10-07 09:31:15.000000000 -0500
@@ -198,7 +198,7 @@ int main(int ac, char **av){
             struct inotify_event *event;
             event = (struct inotify_event *) &event_buf[i];
             if (test_num >= TST_TOTAL) {
-                tst_resm(TFAIL, 
+                tst_resm(TINFO, 
                     "get unnecessary event: wd=%d mask=%x "
                     "cookie=%u len=%u",
                     event->wd, event->mask,
--- cvs_ltp.orig/testcases/kernel/syscalls/inotify/inotify02.c	2008-09-03 03:08:02.000000000 -0500
+++ cvs_ltp/testcases/kernel/syscalls/inotify/inotify02.c	2008-10-07 09:04:46.000000000 -0500
@@ -248,7 +248,7 @@ int main(int ac, char **av){
             struct inotify_event *event;
             event = (struct inotify_event *) &event_buf[i];
             if (test_num >= TST_TOTAL){
-                tst_resm(TFAIL, "get unnecessary event: "
+                tst_resm(TINFO, "get unnecessary event: "
                     "wd=%d mask=%x cookie=%u len=%u"
                     "name=\"%s\"",event->wd, event->mask,
                     event->cookie, event->len, 
-------------------------------------------------------------------------
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