Seems to me that you are right.
        I'm also looking at the testcase and trying to count everything up. It's not well documented as to what it's trying to do and what it's expecting in error though. There's also only 5 members of exp_enos[] and it' seems to be running 10 testcases based on wr_iovec[]. But there's only 8 block#: statements.
        Shaobo, feel up to doing a little cleanups? :)
        j

       

Jay Huie
 wjhuie@us.ibm.com
 zSeries Linux System Test
 Phone: 845-435-8164

Please respond to Shaobo Li <sli@Sanera.net>

Sent by:        ltp-list-admin@lists.sourceforge.net

To:        ltp-list@lists.sourceforge.net
cc:        
Subject:        [LTP] writev01




I test writev01 on mips. Looks like there is a bug in program writev01.c.
May someone please confirm.

version: ltp-20020607
file: ltp-20020607/testcases/kernel/syscalls/writev/writev01.c

line 386:
---------------------------------------------------------
if ((ret = writev(fd[0], (wr_iovec + 12), 5)) != CHUNK) {
---------------------------------------------------------

should be:
---------------------------------------------------------
if ((ret = writev(fd[0], (wr_iovec + 12), 4)) != CHUNK) {
---------------------------------------------------------

since '5' exceeds the wr_iovec limite.



----------------------------------------------------------------------------
Bringing you mounds of caffeinated joy
>>>     http://thinkgeek.com/sf    <<<


_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list