I'll take a deeper look at it, but haven't seen it on my system. sockioctl# ./sockioctl01 -c 5 sockioctl01 1 PASS : bad file descriptor successful sockioctl01 1 PASS : bad file descriptor successful sockioctl01 1 PASS : bad file descriptor successful sockioctl01 1 PASS : bad file descriptor successful sockioctl01 1 PASS : bad file descriptor successful sockioctl01 2 PASS : not a socket successful sockioctl01 2 PASS : not a socket successful sockioctl01 2 PASS : not a socket successful sockioctl01 2 PASS : not a socket successful sockioctl01 2 PASS : not a socket successful sockioctl01 3 PASS : invalid option buffer successful sockioctl01 4 PASS : ATMARK on UDP successful sockioctl01 5 PASS : SIOCGIFCONF successful sockioctl01 6 PASS : SIOCGIFFLAGS successful sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful sockioctl01 3 PASS : invalid option buffer successful sockioctl01 4 PASS : ATMARK on UDP successful sockioctl01 5 PASS : SIOCGIFCONF successful sockioctl01 6 PASS : SIOCGIFFLAGS successful sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful sockioctl01 3 PASS : invalid option buffer successful sockioctl01 4 PASS : ATMARK on UDP successful sockioctl01 5 PASS : SIOCGIFCONF successful sockioctl01 6 PASS : SIOCGIFFLAGS successful sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful sockioctl01 3 PASS : invalid option buffer successful sockioctl01 4 PASS : ATMARK on UDP successful sockioctl01 5 PASS : SIOCGIFCONF successful sockioctl01 6 PASS : SIOCGIFFLAGS successful sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful
# uname -a Linux 10.40.21.39 2.6.21_mvlcge500-pc_target-x86_pentium4 #1 SMP PREEMPT Fri Apr 11 22:30:01 EDT 2008 i686 GNU/Linux ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rishikesh K. Rajak Sent: Monday, May 05, 2008 10:42 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Mike Frysinger; [email protected] Subject: Re: [LTP] [PATCH] sockioctl0 fix to stop relying on existing tty* On Mon, 2008-05-05 at 22:08 +0530, Subrata Modak wrote: On Mon, 2008-05-05 at 19:57 +0530, Rishikesh K. Rajak wrote: > On Sat, 2008-04-26 at 20:07 +0530, Subrata Modak wrote: > > On Fri, 2008-04-25 at 19:06 -0700, Henry Yei wrote: > > > I sent the wrong version of the patch, this is the right version! Sorry > > > about the spam. > > > > Post Patch seems to work fine for me. Thanks. Patch applied. > > Hi Subrata, > > This testcase is still failing but it pass when we run with one > iteration. Below is the log file. Thanks Rishi for pointing that out. Can you increase your loops and see the results. I tested with multiple loops the result is same as failure. Rishi Henry, Can you look into this ? Renaud, Is this something to do with concurrency stuff you have dealt with LTP test case(s)? Regards-- Subrata > > [EMAIL PROTECTED] sockioctl]# ./sockioctl01 > sockioctl01 1 PASS : bad file descriptor successful > sockioctl01 2 PASS : not a socket successful > sockioctl01 3 PASS : invalid option buffer successful > sockioctl01 4 PASS : ATMARK on UDP successful > sockioctl01 5 PASS : SIOCGIFCONF successful > sockioctl01 6 PASS : SIOCGIFFLAGS successful > sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful > sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful > > > [EMAIL PROTECTED] sockioctl]# uname -a > Linux e326.in.ibm.com 2.6.18-90.el5 #1 SMP Tue Apr 15 18:05:09 EDT > 2008 i686 athlon i386 GNU/Linux > > > [EMAIL PROTECTED] sockioctl]# ./sockioctl01 -i 2 > sockioctl01 1 PASS : bad file descriptor successful > sockioctl01 2 PASS : not a socket successful > sockioctl01 3 PASS : invalid option buffer successful > sockioctl01 4 PASS : ATMARK on UDP successful > sockioctl01 5 PASS : SIOCGIFCONF successful > sockioctl01 6 PASS : SIOCGIFFLAGS successful > sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful > sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful > sockioctl01 1 PASS : bad file descriptor successful > sockioctl01 2 FAIL : not a socket ; returned -1 (expected -1), > errno 9 (expected 22) > sockioctl01 3 PASS : invalid option buffer successful > sockioctl01 4 PASS : ATMARK on UDP successful > sockioctl01 5 PASS : SIOCGIFCONF successful > sockioctl01 6 PASS : SIOCGIFFLAGS successful > sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful > sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful > > > Thanks > Rishi > > > > > Regards-- > > Subrata > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Henry Yei > > > Sent: Friday, April 25, 2008 5:19 PM > > > To: [EMAIL PROTECTED] > > > Cc: [email protected] > > > Subject: Re: [LTP] [PATCH] sockioctl0 fix to stop relying on existing > > > tty* > > > > > > Previous patch didn't apply cleanly due some space conversion between my > > > mail machine and test machine, this one should. > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Henry Yei > > > Sent: Friday, April 25, 2008 3:55 PM > > > To: [EMAIL PROTECTED] > > > Cc: [email protected] > > > Subject: Re: [LTP] [PATCH] sockioctl0 fix to stop relying on existing > > > tty* > > > > > > Sorry, there was a missing character in the patch. I've attached the > > > updated patch. > > > > > > Post patch: > > > <<<test_start>>> > > > tag=sockioctl01 stime=1209163764 > > > cmdline="sockioctl01" > > > contacts="" > > > analysis=exit > > > initiation_status="ok" > > > <<<test_output>>> > > > sockioctl01 1 PASS : bad file descriptor successful > > > sockioctl01 2 PASS : not a socket successful > > > sockioctl01 3 PASS : invalid option buffer successful > > > sockioctl01 4 PASS : ATMARK on UDP successful > > > sockioctl01 5 PASS : SIOCGIFCONF successful > > > sockioctl01 6 PASS : SIOCGIFFLAGS successful > > > sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful > > > sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful > > > incrementing stop > > > <<<execution_status>>> > > > duration=0 termination_type=exited termination_id=0 corefile=no cutime=0 > > > cstime=0 <<<test_end>>> > > > > > > Prepatch: > > > <<<test_start>>> > > > tag=sockioctl01 stime=1193788811 > > > cmdline="sockioctl01" > > > contacts="" > > > analysis=exit > > > initiation_status="ok" > > > <<<test_output>>> > > > sockioctl01 1 PASS : bad file descriptor successful > > > sockioctl01 2 BROK : Could not open /dev/tty0 or /dev/tty - errno: > > > No such device or address > > > sockioctl01 3 BROK : Remaining cases broken > > > sockioctl01 4 BROK : Remaining cases broken > > > sockioctl01 5 BROK : Remaining cases broken > > > sockioctl01 6 BROK : Remaining cases broken > > > sockioctl01 7 BROK : Remaining cases broken > > > sockioctl01 8 BROK : Remaining cases broken > > > <<<execution_status>>> > > > duration=0 termination_type=exited termination_id=2 corefile=no cutime=0 > > > cstime=0 <<<test_end>>> > > > > > > -----Original Message----- > > > From: Subrata Modak [mailto:[EMAIL PROTECTED] > > > Sent: Friday, April 25, 2008 12:20 PM > > > To: Henry Yei > > > Cc: [email protected] > > > Subject: Re: [LTP] [PATCH] sockioctl0 fix to stop relying on existing > > > tty* > > > > > > On Thu, 2008-04-24 at 19:47 -0700, Henry Yei wrote: > > > > Hello, > > > > > > > > This patch removes the dependency of existing tty* devices for this > > > > test to pass, and also ups the invalid file descriptor value from 400 > > > > to 1025 which is used to confirm the EBADF errno. > > > > > > But i get a testcase failure after applying the Patch. Please see below > > > the results: > > > > > > <<<test_start>>> > > > tag=sockioctl01 stime=1209151071 > > > cmdline="sockioctl01" > > > contacts="" > > > analysis=exit > > > initiation_status="ok" > > > <<<test_output>>> > > > incrementing stop > > > sockioctl01 1 PASS : bad file descriptor successful > > > sockioctl01 0 WARN : tst_rmdir(): TESTDIR was NULL; no removal > > > attempted > > > sockioctl01 2 FAIL : not a socket ; returned -1 (expected -1), > > > errno 25 (expected 22) > > > sockioctl01 3 PASS : invalid option buffer successful > > > sockioctl01 4 PASS : ATMARK on UDP successful > > > sockioctl01 5 PASS : SIOCGIFCONF successful > > > sockioctl01 6 PASS : SIOCGIFFLAGS successful > > > sockioctl01 7 PASS : SIOCGIFFLAGS with invalid ifr successful > > > sockioctl01 8 PASS : SIOCSIFFLAGS with invalid ifr successful > > > <<<execution_status>>> > > > duration=0 termination_type=exited termination_id=5 corefile=no cutime=0 > > > cstime=0 <<<test_end>>> > > > > > > $ uname -a > > > Linux <sniff> 2.6.18-53.1.13.el5 #1 SMP Mon Feb 11 13:27:52 EST 2008 > > > i686 i686 i386 GNU/Linux > > > > > > Test Executes fine pre-patch. It would be nice if you can share your > > > test results pre and post-patch. > > > > > > > > > > > > Regards-- > > > Subrata > > > > > > > > > > > Henry Yei > > > > MontaVista Software, Inc. > > > > [EMAIL PROTECTED] > > > > > > > > ---------------------------------------------------------------------- > > > > --- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > > Don't miss this year's exciting event. There's still time to save > > > $100. > > > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com > > > > /javaone _______________________________________________ Ltp-list > > > > mailing list [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/ltp-list > > > > > > > > > ------------------------------------------------------------------------ - > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone > > _______________________________________________ > > Ltp-list mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
