* [LTP] waitid02 testcase fails on 2.6.29 kernel
@ 2009-07-23 8:30 rohit verma
2009-07-23 14:22 ` Munipradeep Beerakam
2009-07-30 18:29 ` Subrata Modak
0 siblings, 2 replies; 9+ messages in thread
From: rohit verma @ 2009-07-23 8:30 UTC (permalink / raw)
To: ltp-list
Hi,
I am running waitid02.c
(ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on
2.6.29 kernel.
Test case gives following error:
"Error. is your system >2.6.9 ?";
Anybody facing the same issue?
Code:
TEST(waitid(P_ALL,0,&infop,WNOHANG));
if(TEST_RETURN == 0)
tst_resm(TPASS,"Success !");
else{
printf("value of return is %d\n",TEST_RETURN);
tst_resm(TFAIL,"Error. is your system >2.6.9 ?");
errnochoose();
}
Regards,
Rohit
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-07-23 8:30 [LTP] waitid02 testcase fails on 2.6.29 kernel rohit verma @ 2009-07-23 14:22 ` Munipradeep Beerakam 2009-07-30 18:29 ` Subrata Modak 1 sibling, 0 replies; 9+ messages in thread From: Munipradeep Beerakam @ 2009-07-23 14:22 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list Hi, I am also facing the same issue. I think it is testcase problem. Regards Muni On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: > Hi, > > I am running waitid02.c > (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on > 2.6.29 kernel. > Test case gives following error: > "Error. is your system >2.6.9 ?"; > > Anybody facing the same issue? > > Code: > > TEST(waitid(P_ALL,0,&infop,WNOHANG)); > if(TEST_RETURN == 0) > tst_resm(TPASS,"Success !"); > else{ > printf("value of return is %d\n",TEST_RETURN); > tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); > errnochoose(); > } > > > Regards, > Rohit > > ------------------------------------------------------------------------------ > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-07-23 8:30 [LTP] waitid02 testcase fails on 2.6.29 kernel rohit verma 2009-07-23 14:22 ` Munipradeep Beerakam @ 2009-07-30 18:29 ` Subrata Modak [not found] ` <d51f89b0908040422o17ac20f6q36aaff23ea88e839@mail.gmail.com> 1 sibling, 1 reply; 9+ messages in thread From: Subrata Modak @ 2009-07-30 18:29 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list Fixed this now. Regards-- Subrata On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: > Hi, > > I am running waitid02.c > (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on > 2.6.29 kernel. > Test case gives following error: > "Error. is your system >2.6.9 ?"; > > Anybody facing the same issue? > > Code: > > TEST(waitid(P_ALL,0,&infop,WNOHANG)); > if(TEST_RETURN == 0) > tst_resm(TPASS,"Success !"); > else{ > printf("value of return is %d\n",TEST_RETURN); > tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); > errnochoose(); > } > > > Regards, > Rohit > > ------------------------------------------------------------------------------ > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <d51f89b0908040422o17ac20f6q36aaff23ea88e839@mail.gmail.com>]
[parent not found: <1249385096.15587.17.camel@subratamodak.linux.ibm.com>]
* [LTP] waitid02 testcase fails on 2.6.29 kernel [not found] ` <1249385096.15587.17.camel@subratamodak.linux.ibm.com> @ 2009-08-04 11:31 ` rohit verma 2009-08-04 12:05 ` Subrata Modak 0 siblings, 1 reply; 9+ messages in thread From: rohit verma @ 2009-08-04 11:31 UTC (permalink / raw) To: ltp-list FYI ---------- Forwarded message ---------- From: Subrata Modak <subrata@linux.vnet.ibm.com> Date: Tue, Aug 4, 2009 at 4:54 PM Subject: Re: [LTP] waitid02 testcase fails on 2.6.29 kernel To: rohit verma <rohit.170309@gmail.com> Cc: maknayak@in.ibm.com, CAI Qian <caiqian@cclom.cn> Rohit, Post this to ltp mailing list. Regards-- Subrata On Tue, 2009-08-04 at 16:52 +0530, rohit verma wrote: > Dear Manas Kumar Nayak, > > Pls find attached patch for waitid02 test case.I have modified the > test case.I have also added 2 test scenarios in the test case using > WSTOPPED and WNOWAIT. > > Note: > The testcase was failing in LTP July, 2009 release. > The warning- "implicit declaration of function 'getpgid", has been removed > > Pls verify the patch. > > Regards-- > Rohit Verma > > > > On Thu, Jul 30, 2009 at 11:59 PM, Subrata > Modak<subrata@linux.vnet.ibm.com> wrote: > > Fixed this now. > > > > Regards-- > > Subrata > > > > On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: > >> Hi, > >> > >> I am running waitid02.c > >> (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on > >> 2.6.29 kernel. > >> Test case gives following error: > >> "Error. is your system >2.6.9 ?"; > >> > >> Anybody facing the same issue? > >> > >> Code: > >> > >> TEST(waitid(P_ALL,0,&infop,WNOHANG)); > >> if(TEST_RETURN == 0) > >> tst_resm(TPASS,"Success !"); > >> else{ > >> printf("value of return is %d\n",TEST_RETURN); > >> tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); > >> errnochoose(); > >> } > >> > >> > >> Regards, > >> Rohit > >> > >> ------------------------------------------------------------------------------ > >> _______________________________________________ > >> Ltp-list mailing list > >> Ltp-list@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/ltp-list > > > > > > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-08-04 11:31 ` rohit verma @ 2009-08-04 12:05 ` Subrata Modak 2009-08-04 12:14 ` rohit verma 0 siblings, 1 reply; 9+ messages in thread From: Subrata Modak @ 2009-08-04 12:05 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list On Tue, 2009-08-04 at 17:01 +0530, rohit verma wrote: > FYI unfortunately, you did not attach the patch itself ;-) Regards-- Subrata > > ---------- Forwarded message ---------- > From: Subrata Modak <subrata@linux.vnet.ibm.com> > Date: Tue, Aug 4, 2009 at 4:54 PM > Subject: Re: [LTP] waitid02 testcase fails on 2.6.29 kernel > To: rohit verma <rohit.170309@gmail.com> > Cc: maknayak@in.ibm.com, CAI Qian <caiqian@cclom.cn> > > > Rohit, > > Post this to ltp mailing list. > > Regards-- > Subrata > > On Tue, 2009-08-04 at 16:52 +0530, rohit verma wrote: > > Dear Manas Kumar Nayak, > > > > Pls find attached patch for waitid02 test case.I have modified the > > test case.I have also added 2 test scenarios in the test case using > > WSTOPPED and WNOWAIT. > > > > Note: > > The testcase was failing in LTP July, 2009 release. > > The warning- "implicit declaration of function 'getpgid", has been removed > > > > Pls verify the patch. > > > > Regards-- > > Rohit Verma > > > > > > > > On Thu, Jul 30, 2009 at 11:59 PM, Subrata > > Modak<subrata@linux.vnet.ibm.com> wrote: > > > Fixed this now. > > > > > > Regards-- > > > Subrata > > > > > > On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: > > >> Hi, > > >> > > >> I am running waitid02.c > > >> (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on > > >> 2.6.29 kernel. > > >> Test case gives following error: > > >> "Error. is your system >2.6.9 ?"; > > >> > > >> Anybody facing the same issue? > > >> > > >> Code: > > >> > > >> TEST(waitid(P_ALL,0,&infop,WNOHANG)); > > >> if(TEST_RETURN == 0) > > >> tst_resm(TPASS,"Success !"); > > >> else{ > > >> printf("value of return is %d\n",TEST_RETURN); > > >> tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); > > >> errnochoose(); > > >> } > > >> > > >> > > >> Regards, > > >> Rohit > > >> > > >> ------------------------------------------------------------------------------ > > >> _______________________________________________ > > >> Ltp-list mailing list > > >> Ltp-list@lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/ltp-list > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-08-04 12:05 ` Subrata Modak @ 2009-08-04 12:14 ` rohit verma 2009-08-04 14:42 ` Garrett Cooper 2009-08-06 7:27 ` Michal Simek 0 siblings, 2 replies; 9+ messages in thread From: rohit verma @ 2009-08-04 12:14 UTC (permalink / raw) To: subrata; +Cc: ltp-list [-- Attachment #1: Type: text/plain, Size: 3060 bytes --] PFA the patch for waitid02 On Tue, Aug 4, 2009 at 5:35 PM, Subrata Modak<subrata@linux.vnet.ibm.com> wrote: > On Tue, 2009-08-04 at 17:01 +0530, rohit verma wrote: >> FYI > > unfortunately, you did not attach the patch itself ;-) > > Regards-- > Subrata > >> >> ---------- Forwarded message ---------- >> From: Subrata Modak <subrata@linux.vnet.ibm.com> >> Date: Tue, Aug 4, 2009 at 4:54 PM >> Subject: Re: [LTP] waitid02 testcase fails on 2.6.29 kernel >> To: rohit verma <rohit.170309@gmail.com> >> Cc: maknayak@in.ibm.com, CAI Qian <caiqian@cclom.cn> >> >> >> Rohit, >> >> Post this to ltp mailing list. >> >> Regards-- >> Subrata >> >> On Tue, 2009-08-04 at 16:52 +0530, rohit verma wrote: >> > Dear Manas Kumar Nayak, >> > >> > Pls find attached patch for waitid02 test case.I have modified the >> > test case.I have also added 2 test scenarios in the test case using >> > WSTOPPED and WNOWAIT. >> > >> > Note: >> > The testcase was failing in LTP July, 2009 release. >> > The warning- "implicit declaration of function 'getpgid", has been removed >> > >> > Pls verify the patch. >> > >> > Regards-- >> > Rohit Verma >> > >> > >> > >> > On Thu, Jul 30, 2009 at 11:59 PM, Subrata >> > Modak<subrata@linux.vnet.ibm.com> wrote: >> > > Fixed this now. >> > > >> > > Regards-- >> > > Subrata >> > > >> > > On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: >> > >> Hi, >> > >> >> > >> I am running waitid02.c >> > >> (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on >> > >> 2.6.29 kernel. >> > >> Test case gives following error: >> > >> "Error. is your system >2.6.9 ?"; >> > >> >> > >> Anybody facing the same issue? >> > >> >> > >> Code: >> > >> >> > >> TEST(waitid(P_ALL,0,&infop,WNOHANG)); >> > >> if(TEST_RETURN == 0) >> > >> tst_resm(TPASS,"Success !"); >> > >> else{ >> > >> printf("value of return is %d\n",TEST_RETURN); >> > >> tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); >> > >> errnochoose(); >> > >> } >> > >> >> > >> >> > >> Regards, >> > >> Rohit >> > >> >> > >> ------------------------------------------------------------------------------ >> > >> _______________________________________________ >> > >> Ltp-list mailing list >> > >> Ltp-list@lists.sourceforge.net >> > >> https://lists.sourceforge.net/lists/listinfo/ltp-list >> > > >> > > >> > >> > >> > >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Ltp-list mailing list >> Ltp-list@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/ltp-list > > -- Regards, Rohit [-- Attachment #2: waitid02.txt --] [-- Type: text/plain, Size: 7677 bytes --] Signed-off-by: rohit verma (rohit170309@gmail.com) =============================================================================== diff -ruNB ltp-full-20090731_p/testcases/kernel/syscalls/waitid/waitid02.c ltp-full-20090731/testcases/kernel/syscalls/waitid/waitid02.c --- ltp-full-20090731_p/testcases/kernel/syscalls/waitid/waitid02.c 2009-07-30 20:45:25.000000000 +0530 +++ ltp-full-20090731/testcases/kernel/syscalls/waitid/waitid02.c 2009-08-04 15:37:53.000000000 +0530 @@ -58,7 +57,7 @@ /* Global Variables */ char *TCID = "waitid02"; /* Test program identifier.*/ int testno; -int TST_TOTAL = 7; /* total number of tests in this file. */ +int TST_TOTAL = 4; /* total number of tests in this file. */ /* Extern Global Functions */ /******************************************************************************/ @@ -106,114 +105,145 @@ /* */ /******************************************************************************/ void setup() { - /* Capture signals if any */ - /* Create temporary directories */ - TEST_PAUSE; - tst_tmpdir(); + /* Capture signals if any */ + /* Create temporary directories */ + TEST_PAUSE; + tst_tmpdir(); } int errnochoose(void){ //choose the relative errno - switch (TEST_ERRNO){ - case ECHILD: strerror((int)"ECHILD"); - break; - case EINTR: strerror((int)"EINTR"); - break; - case EINVAL: strerror((int)"EINVAL"); - break; - default: strerror((int)"Other Error"); - } - tst_exit() ; + switch (TEST_ERRNO) { + case ECHILD: strerror((int)"ECHILD"); + break; + case EINTR: strerror((int)"EINTR"); + break; + case EINVAL: strerror((int)"EINVAL"); + break; + default: strerror((int)"Other Error"); + } + tst_exit() ; } int main(int ac, char **av) { - id_t cpid; - id_t id1,id2,id3; - id_t gid1,gid2,gid3; - siginfo_t infop; - int i = 0; + id_t pgid; + id_t id1, id2, id3; + siginfo_t infop; + int i = 0; - int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + int lc; /* loop counter */ + char *msg; /* message returned from parse_opts */ /* parse standard options */ - if ((msg = parse_opts(ac, av, (option_t *)NULL, NULL)) != (char *)NULL){ - tst_brkm(TBROK, cleanup, "OPTION PARSING ERROR - %s", msg); - tst_exit(); - } - - setup(); - - /* Check looping state if -i option given */ - - for (lc = 0; TEST_LOOPING(lc); ++lc) { - Tst_count = 0; - for (testno = 0; testno < TST_TOTAL; ++testno) { + msg = parse_opts(ac, av, (option_t *)NULL, NULL); + if (msg != (char *)NULL) { + tst_brkm(TBROK, cleanup, "OPTION PARSING ERROR - %s", msg); + tst_exit(); + } + + setup(); + + /* Check looping state if -i option given */ + + for (lc = 0; TEST_LOOPING(lc); ++lc) { + Tst_count = 0; + for (testno = 0; testno < TST_TOTAL; ++testno) { - - TEST(waitid(P_ALL,0,&infop,WNOHANG)); - if(TEST_RETURN == 0) - tst_resm(TPASS,"Success !"); - else{ - tst_resm(TFAIL,"%s failed", TCID); - errnochoose(); - } - -// option == WEXITED | WCONTINUED | WSTOPPED | WNOHANG | WNOWAIT ; - - TEST(fork()); - if(TEST_RETURN == 0){ - tst_resm(TINFO,"I'm a child,my id is %d,gpid is %d",id1=getpid(),gid1=getpgid(0)); + TEST(waitid(P_ALL, 0, &infop, WNOHANG)); + if (TEST_RETURN == -1) + tst_resm(TPASS, "Success1 ... -1 is returned. error is %d.", + TEST_ERRNO); + else { + tst_resm(TFAIL, "%s Failed1 ...", TCID); + } + + /* option == WEXITED | WCONTINUED | WSTOPPED | WNOHANG | WNOWAIT*/ + + TEST(id1 = fork()); + if (TEST_RETURN == 0) { + tst_resm(TINFO, "I'm a child 1,my id is %d,gpid is %d", + id1 = getpid(), __getpgid(0)); + sleep(1); exit(5); - } - - TEST(fork()); - if(TEST_RETURN == 0){ - tst_resm(TINFO,"I'm a child,my id is %d,gpid is %d",id2=getpid(),gid2=getpgid(0)); + } + + TEST(id2 = fork()); + if (TEST_RETURN == 0) { + sleep(3); + tst_resm(TINFO, "I'm a child 2,my id is %d,gpid is %d", + id2 = getpid(), __getpgid(0)); exit(7); - } + } - TEST(fork()); - if(TEST_RETURN == 0){ - tst_resm(TINFO,"I'm a child,my id is %d,gpid is %d",id3=getpid(),gid3=getpgid(0)); + TEST(id3 = fork()); + if (TEST_RETURN == 0) { + sleep(2); + TEST(kill(id2, SIGCONT)); + tst_resm(TINFO, "I'm a child 3,my id is %d,gpid is %d", + id3 = getpid(), __getpgid(0)); exit(6); - } + } + + TEST(waitid(P_ALL, 0, &infop, WNOHANG | WEXITED)); + if (TEST_RETURN == 0) + tst_resm(TPASS, "Success 2 ...0 is returned.. error is %d.", + TEST_ERRNO); + else { + tst_resm(TFAIL, "%s Failed 2", TCID); + errnochoose(); + } - tst_resm(TINFO,"I'm a father %d",cpid=getpid()); + tst_resm(TINFO, "I'm a Parent,my id is %d,gpid is %d", + getpid(), pgid = __getpgid(0)); - TEST(waitid(P_PGID,cpid,&infop,WEXITED)); + TEST(waitid(P_PGID, pgid, &infop, WEXITED)); if(TEST_RETURN == 0){ - tst_resm(TPASS,"Success ... 0 is returned."); - tst_resm(TINFO,"si_pid = %d ; si_code = %d ; si_status = %d",infop.si_pid,infop.si_code,infop.si_status); - }else { - tst_resm(TFAIL,"Fail... %d is returned",TEST_RETURN); - errnochoose(); - } - - TEST(waitid(P_PGID,id2,&infop,WEXITED)); - if(TEST_RETURN == 0){ //NOCHILD - tst_resm(TINFO,"si_pid = %d ; si_code = %d ; si_status = %d",infop.si_pid,infop.si_code,infop.si_status); - tst_resm(TPASS,"Success2 ... 0 is returned"); - }else { - tst_resm(TFAIL,"Fail... %d is returned",TEST_RETURN); - errnochoose(); - } - - TEST(i = waitid(P_PID,id1,&infop,WCONTINUED)); - if(TEST_RETURN == 0){ //EINVAL - tst_resm(TINFO,"si_pid = %d ; si_code = %d ; si_status = %d",infop.si_pid,infop.si_code,infop.si_status); - tst_resm(TPASS,"Success3 ... 0 is returned"); - }else { - tst_resm(TFAIL,"Fail... %d is returned",i); - errnochoose(); - } - } - } - cleanup(); + tst_resm(TPASS, "Success3 ... 0 is returned."); + tst_resm(TINFO, "si_pid = %d ; si_code = %d ; si_status = %d", + infop.si_pid, infop.si_code, infop.si_status); + } else { + tst_resm(TFAIL, "Fail3 ... %d is returned", TEST_RETURN); + errnochoose(); + } + + TEST(kill(id2, SIGSTOP)); + + TEST(i = waitid(P_PID, id2, &infop, WSTOPPED | WNOWAIT)); + if (TEST_RETURN == 0) { /*EINVAL*/ + tst_resm(TINFO, "si_pid = %d, si_code = %d, si_status = %d", + infop.si_pid, infop.si_code, infop.si_status); + tst_resm(TPASS, "Success4 ... 0 is returned"); + } else { + tst_resm(TFAIL, "Fail4 ... %d is returned", i); + errnochoose(); + } + + + TEST(waitid(P_PID, id3, &infop, WEXITED)); + if (TEST_RETURN == 0) { /*NOCHILD*/ + tst_resm(TINFO, "si_pid = %d, si_code = %d, si_status = %d", + infop.si_pid, infop.si_code, infop.si_status); + tst_resm(TPASS, "Success5 ... 0 is returned"); + } else { + tst_resm(TFAIL, "Fail5 ... %d is returned", TEST_RETURN); + errnochoose(); + } + + TEST(i = waitid(P_PID, id2, &infop, WCONTINUED)); + if (TEST_RETURN == 0) { /*EINVAL*/ + tst_resm(TINFO, "si_pid = %d, si_code = %d, si_status = %d", + infop.si_pid, infop.si_code, infop.si_status); + tst_resm(TPASS, "Success6 ... 0 is returned"); + } else { + tst_resm(TFAIL, "Fail6 ... %d is returned", i); + errnochoose(); + } + + sleep(3); + } + } + cleanup(); tst_exit(); } - - - [-- Attachment #3: Type: text/plain, Size: 355 bytes --] ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july [-- Attachment #4: Type: text/plain, Size: 155 bytes --] _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-08-04 12:14 ` rohit verma @ 2009-08-04 14:42 ` Garrett Cooper 2009-08-06 7:27 ` Michal Simek 1 sibling, 0 replies; 9+ messages in thread From: Garrett Cooper @ 2009-08-04 14:42 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list On Tue, Aug 4, 2009 at 5:14 AM, rohit verma<rohit.170309@gmail.com> wrote: > PFA the patch for waitid02 > > On Tue, Aug 4, 2009 at 5:35 PM, Subrata Modak<subrata@linux.vnet.ibm.com> wrote: >> On Tue, 2009-08-04 at 17:01 +0530, rohit verma wrote: >>> FYI >> >> unfortunately, you did not attach the patch itself ;-) >> >> Regards-- >> Subrata >> >>> >>> ---------- Forwarded message ---------- >>> From: Subrata Modak <subrata@linux.vnet.ibm.com> >>> Date: Tue, Aug 4, 2009 at 4:54 PM >>> Subject: Re: [LTP] waitid02 testcase fails on 2.6.29 kernel >>> To: rohit verma <rohit.170309@gmail.com> >>> Cc: maknayak@in.ibm.com, CAI Qian <caiqian@cclom.cn> >>> >>> >>> Rohit, >>> >>> Post this to ltp mailing list. >>> >>> Regards-- >>> Subrata >>> >>> On Tue, 2009-08-04 at 16:52 +0530, rohit verma wrote: >>> > Dear Manas Kumar Nayak, >>> > >>> > Pls find attached patch for waitid02 test case.I have modified the >>> > test case.I have also added 2 test scenarios in the test case using >>> > WSTOPPED and WNOWAIT. >>> > >>> > Note: >>> > The testcase was failing in LTP July, 2009 release. >>> > The warning- "implicit declaration of function 'getpgid", has been removed >>> > >>> > Pls verify the patch. >>> > >>> > Regards-- >>> > Rohit Verma >>> > >>> > >>> > >>> > On Thu, Jul 30, 2009 at 11:59 PM, Subrata >>> > Modak<subrata@linux.vnet.ibm.com> wrote: >>> > > Fixed this now. >>> > > >>> > > Regards-- >>> > > Subrata >>> > > >>> > > On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: >>> > >> Hi, >>> > >> >>> > >> I am running waitid02.c >>> > >> (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on >>> > >> 2.6.29 kernel. >>> > >> Test case gives following error: >>> > >> "Error. is your system >2.6.9 ?"; >>> > >> >>> > >> Anybody facing the same issue? >>> > >> >>> > >> Code: >>> > >> >>> > >> TEST(waitid(P_ALL,0,&infop,WNOHANG)); >>> > >> if(TEST_RETURN == 0) >>> > >> tst_resm(TPASS,"Success !"); >>> > >> else{ >>> > >> printf("value of return is %d\n",TEST_RETURN); >>> > >> tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); >>> > >> errnochoose(); >>> > >> } >>> > >> >>> > >> >>> > >> Regards, >>> > >> Rohit > > Regards, > Rohit Sorry to be anal retentive, but the types for many of the fields didn't match before, and they don't match now... s/id_t/pid_t/ for the return values' types for all corresponding calls to getpid, getpgid, getpgrp, etc. Thanks, -Garrett ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-08-04 12:14 ` rohit verma 2009-08-04 14:42 ` Garrett Cooper @ 2009-08-06 7:27 ` Michal Simek 2009-08-07 12:41 ` Subrata Modak 1 sibling, 1 reply; 9+ messages in thread From: Michal Simek @ 2009-08-06 7:27 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list rohit verma wrote: > PFA the patch for waitid02 > I can confirm that this patch fixed problem with waitid02. It is just confirmation - I haven't look at style/patch in detail - just works and pass on Microblaze Subrate: Do you want to add it to cvs? Michal > On Tue, Aug 4, 2009 at 5:35 PM, Subrata Modak<subrata@linux.vnet.ibm.com> wrote: > >> On Tue, 2009-08-04 at 17:01 +0530, rohit verma wrote: >> >>> FYI >>> >> unfortunately, you did not attach the patch itself ;-) >> >> Regards-- >> Subrata >> >> >>> ---------- Forwarded message ---------- >>> From: Subrata Modak <subrata@linux.vnet.ibm.com> >>> Date: Tue, Aug 4, 2009 at 4:54 PM >>> Subject: Re: [LTP] waitid02 testcase fails on 2.6.29 kernel >>> To: rohit verma <rohit.170309@gmail.com> >>> Cc: maknayak@in.ibm.com, CAI Qian <caiqian@cclom.cn> >>> >>> >>> Rohit, >>> >>> Post this to ltp mailing list. >>> >>> Regards-- >>> Subrata >>> >>> On Tue, 2009-08-04 at 16:52 +0530, rohit verma wrote: >>> >>>> Dear Manas Kumar Nayak, >>>> >>>> Pls find attached patch for waitid02 test case.I have modified the >>>> test case.I have also added 2 test scenarios in the test case using >>>> WSTOPPED and WNOWAIT. >>>> >>>> Note: >>>> The testcase was failing in LTP July, 2009 release. >>>> The warning- "implicit declaration of function 'getpgid", has been removed >>>> >>>> Pls verify the patch. >>>> >>>> Regards-- >>>> Rohit Verma >>>> >>>> >>>> >>>> On Thu, Jul 30, 2009 at 11:59 PM, Subrata >>>> Modak<subrata@linux.vnet.ibm.com> wrote: >>>> >>>>> Fixed this now. >>>>> >>>>> Regards-- >>>>> Subrata >>>>> >>>>> On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I am running waitid02.c >>>>>> (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on >>>>>> 2.6.29 kernel. >>>>>> Test case gives following error: >>>>>> "Error. is your system >2.6.9 ?"; >>>>>> >>>>>> Anybody facing the same issue? >>>>>> >>>>>> Code: >>>>>> >>>>>> TEST(waitid(P_ALL,0,&infop,WNOHANG)); >>>>>> if(TEST_RETURN == 0) >>>>>> tst_resm(TPASS,"Success !"); >>>>>> else{ >>>>>> printf("value of return is %d\n",TEST_RETURN); >>>>>> tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); >>>>>> errnochoose(); >>>>>> } >>>>>> >>>>>> >>>>>> Regards, >>>>>> Rohit >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> _______________________________________________ >>>>>> Ltp-list mailing list >>>>>> Ltp-list@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/ltp-list >>>>>> >>>>> >>>> >>>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Ltp-list mailing list >>> Ltp-list@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/ltp-list >>> >> > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ------------------------------------------------------------------------ > > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list -- Michal Simek, Ing. (M.Eng) PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LTP] waitid02 testcase fails on 2.6.29 kernel 2009-08-06 7:27 ` Michal Simek @ 2009-08-07 12:41 ` Subrata Modak 0 siblings, 0 replies; 9+ messages in thread From: Subrata Modak @ 2009-08-07 12:41 UTC (permalink / raw) To: michal.simek; +Cc: rohit verma, ltp-list On Thu, 2009-08-06 at 09:27 +0200, Michal Simek wrote: > rohit verma wrote: > > PFA the patch for waitid02 > > > I can confirm that this patch fixed problem with waitid02. > It is just confirmation - I haven't look at style/patch in detail - just > works and pass on Microblaze > > Subrate: Do you want to add it to cvs? Yes. Thanks Rohit. Regards-- Subrata > > Michal > > > On Tue, Aug 4, 2009 at 5:35 PM, Subrata Modak<subrata@linux.vnet.ibm.com> wrote: > > > >> On Tue, 2009-08-04 at 17:01 +0530, rohit verma wrote: > >> > >>> FYI > >>> > >> unfortunately, you did not attach the patch itself ;-) > >> > >> Regards-- > >> Subrata > >> > >> > >>> ---------- Forwarded message ---------- > >>> From: Subrata Modak <subrata@linux.vnet.ibm.com> > >>> Date: Tue, Aug 4, 2009 at 4:54 PM > >>> Subject: Re: [LTP] waitid02 testcase fails on 2.6.29 kernel > >>> To: rohit verma <rohit.170309@gmail.com> > >>> Cc: maknayak@in.ibm.com, CAI Qian <caiqian@cclom.cn> > >>> > >>> > >>> Rohit, > >>> > >>> Post this to ltp mailing list. > >>> > >>> Regards-- > >>> Subrata > >>> > >>> On Tue, 2009-08-04 at 16:52 +0530, rohit verma wrote: > >>> > >>>> Dear Manas Kumar Nayak, > >>>> > >>>> Pls find attached patch for waitid02 test case.I have modified the > >>>> test case.I have also added 2 test scenarios in the test case using > >>>> WSTOPPED and WNOWAIT. > >>>> > >>>> Note: > >>>> The testcase was failing in LTP July, 2009 release. > >>>> The warning- "implicit declaration of function 'getpgid", has been removed > >>>> > >>>> Pls verify the patch. > >>>> > >>>> Regards-- > >>>> Rohit Verma > >>>> > >>>> > >>>> > >>>> On Thu, Jul 30, 2009 at 11:59 PM, Subrata > >>>> Modak<subrata@linux.vnet.ibm.com> wrote: > >>>> > >>>>> Fixed this now. > >>>>> > >>>>> Regards-- > >>>>> Subrata > >>>>> > >>>>> On Thu, 2009-07-23 at 14:00 +0530, rohit verma wrote: > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I am running waitid02.c > >>>>>> (ltp-full-20090630/testcases/kernel/syscalls/waitid/ ) test case on > >>>>>> 2.6.29 kernel. > >>>>>> Test case gives following error: > >>>>>> "Error. is your system >2.6.9 ?"; > >>>>>> > >>>>>> Anybody facing the same issue? > >>>>>> > >>>>>> Code: > >>>>>> > >>>>>> TEST(waitid(P_ALL,0,&infop,WNOHANG)); > >>>>>> if(TEST_RETURN == 0) > >>>>>> tst_resm(TPASS,"Success !"); > >>>>>> else{ > >>>>>> printf("value of return is %d\n",TEST_RETURN); > >>>>>> tst_resm(TFAIL,"Error. is your system >2.6.9 ?"); > >>>>>> errnochoose(); > >>>>>> } > >>>>>> > >>>>>> > >>>>>> Regards, > >>>>>> Rohit > >>>>>> > >>>>>> ------------------------------------------------------------------------------ > >>>>>> _______________________________________________ > >>>>>> Ltp-list mailing list > >>>>>> Ltp-list@lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/ltp-list > >>>>>> > >>>>> > >>>> > >>>> > >>> ------------------------------------------------------------------------------ > >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > >>> trial. Simplify your report design, integration and deployment - and focus on > >>> what you do best, core application coding. Discover what's new with > >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> _______________________________________________ > >>> Ltp-list mailing list > >>> Ltp-list@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/ltp-list > >>> > >> > > > > > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Ltp-list mailing list > > Ltp-list@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/ltp-list > > > -- > Michal Simek, Ing. (M.Eng) > PetaLogix - Linux Solutions for a Reconfigurable World > w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663 > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-08-07 12:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-23 8:30 [LTP] waitid02 testcase fails on 2.6.29 kernel rohit verma
2009-07-23 14:22 ` Munipradeep Beerakam
2009-07-30 18:29 ` Subrata Modak
[not found] ` <d51f89b0908040422o17ac20f6q36aaff23ea88e839@mail.gmail.com>
[not found] ` <1249385096.15587.17.camel@subratamodak.linux.ibm.com>
2009-08-04 11:31 ` rohit verma
2009-08-04 12:05 ` Subrata Modak
2009-08-04 12:14 ` rohit verma
2009-08-04 14:42 ` Garrett Cooper
2009-08-06 7:27 ` Michal Simek
2009-08-07 12:41 ` Subrata Modak
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox