* [LTP] utimes01 test case issue
@ 2009-08-13 8:31 rohit verma
2009-08-14 6:33 ` Wei Yongjun
0 siblings, 1 reply; 7+ messages in thread
From: rohit verma @ 2009-08-13 8:31 UTC (permalink / raw)
To: wangyong2009, subrata, ltp-list
Hi Wang Yong,
I have observed the following thing in case02 of the test case
utimes01 in latest ltp release.
Expected error value is EACCES (In the code below)
But the actual error value is EPERM.I have checked this on 2.6.27 and
2.6.29 kernel.
static struct test_case tcase[] = {
{ // case00
...
},
{ // case01
...
},
{ // case02
.ttype = NORMAL,
.a_sec = 1000,
.m_sec = 2000,
.user = "nobody",
.ret = -1,
.err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM
},
{ // case03
...
},
{ // case04
...
},
};
Kindly confirm whether you are facing the same issue at your end.
--
Regards,
Rohit
------------------------------------------------------------------------------
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] 7+ messages in thread* Re: [LTP] utimes01 test case issue 2009-08-13 8:31 [LTP] utimes01 test case issue rohit verma @ 2009-08-14 6:33 ` Wei Yongjun 2009-08-14 8:34 ` rohit verma 0 siblings, 1 reply; 7+ messages in thread From: Wei Yongjun @ 2009-08-14 6:33 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list rohit verma wrote: > Hi Wang Yong, > > I have observed the following thing in case02 of the test case > utimes01 in latest ltp release. > > Expected error value is EACCES (In the code below) > But the actual error value is EPERM.I have checked this on 2.6.27 and > 2.6.29 kernel. > You can try root user and noroot user, the return error is different. > static struct test_case tcase[] = { > > { // case00 > ... > }, > { // case01 > ... > }, > { // case02 > .ttype = NORMAL, > .a_sec = 1000, > .m_sec = 2000, > .user = "nobody", > .ret = -1, > .err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM > }, > { // case03 > ... > }, > > { // case04 > ... > }, > }; > > Kindly confirm whether you are facing the same issue at your end. > > ------------------------------------------------------------------------------ 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] 7+ messages in thread
* Re: [LTP] utimes01 test case issue 2009-08-14 6:33 ` Wei Yongjun @ 2009-08-14 8:34 ` rohit verma 2009-08-15 2:34 ` Wei Yongjun 0 siblings, 1 reply; 7+ messages in thread From: rohit verma @ 2009-08-14 8:34 UTC (permalink / raw) To: Wei Yongjun; +Cc: ltp-list Hi Wang Yong, I am getting following O/P for case02 : As root user: utimes01 0 TINFO : (case02) START EXPECT: return value(ret)=-1 errno=13 (Permission denied) RESULT: return value(ret)=-1 errno=1 (Operation not permitted) utimes01 0 TINFO : (case02) END => NG As non-root user: utimes01 0 TINFO : (case02) START seteuid failed. utimes01 0 TINFO : (case02) END => OK Are you getting the same? On Fri, Aug 14, 2009 at 12:03 PM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: > rohit verma wrote: >> Hi Wang Yong, >> >> I have observed the following thing in case02 of the test case >> utimes01 in latest ltp release. >> >> Expected error value is EACCES (In the code below) >> But the actual error value is EPERM.I have checked this on 2.6.27 and >> 2.6.29 kernel. >> > > You can try root user and noroot user, the return error is different. > >> static struct test_case tcase[] = { >> >> { // case00 >> ... >> }, >> { // case01 >> ... >> }, >> { // case02 >> .ttype = NORMAL, >> .a_sec = 1000, >> .m_sec = 2000, >> .user = "nobody", >> .ret = -1, >> .err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM >> }, >> { // case03 >> ... >> }, >> >> { // case04 >> ... >> }, >> }; >> >> Kindly confirm whether you are facing the same issue at your end. >> >> > > > -- Regards, Rohit ------------------------------------------------------------------------------ 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] 7+ messages in thread
* Re: [LTP] utimes01 test case issue 2009-08-14 8:34 ` rohit verma @ 2009-08-15 2:34 ` Wei Yongjun 2009-08-21 5:14 ` rohit verma 0 siblings, 1 reply; 7+ messages in thread From: Wei Yongjun @ 2009-08-15 2:34 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list rohit verma wrote: > Hi Wang Yong, > > I am getting following O/P for case02 : > > As root user: > > utimes01 0 TINFO : (case02) START > EXPECT: return value(ret)=-1 errno=13 (Permission denied) > RESULT: return value(ret)=-1 errno=1 (Operation not permitted) > utimes01 0 TINFO : (case02) END => NG > > As non-root user: > utimes01 0 TINFO : (case02) START > seteuid failed. > utimes01 0 TINFO : (case02) END => OK > > Are you getting the same? > > > yes, the same result. > > On Fri, Aug 14, 2009 at 12:03 PM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: > >> rohit verma wrote: >> >>> Hi Wang Yong, >>> >>> I have observed the following thing in case02 of the test case >>> utimes01 in latest ltp release. >>> >>> Expected error value is EACCES (In the code below) >>> But the actual error value is EPERM.I have checked this on 2.6.27 and >>> 2.6.29 kernel. >>> >>> >> You can try root user and noroot user, the return error is different. >> >> >>> static struct test_case tcase[] = { >>> >>> { // case00 >>> ... >>> }, >>> { // case01 >>> ... >>> }, >>> { // case02 >>> .ttype = NORMAL, >>> .a_sec = 1000, >>> .m_sec = 2000, >>> .user = "nobody", >>> .ret = -1, >>> .err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM >>> }, >>> { // case03 >>> ... >>> }, >>> >>> { // case04 >>> ... >>> }, >>> }; >>> >>> Kindly confirm whether you are facing the same issue at your end. >>> >>> >>> >> >> > > > > ------------------------------------------------------------------------------ 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] 7+ messages in thread
* Re: [LTP] utimes01 test case issue 2009-08-15 2:34 ` Wei Yongjun @ 2009-08-21 5:14 ` rohit verma 2009-08-27 8:39 ` rohit verma 0 siblings, 1 reply; 7+ messages in thread From: rohit verma @ 2009-08-21 5:14 UTC (permalink / raw) To: subrata, Wei Yongjun; +Cc: ltp-list [-- Attachment #1: Type: text/plain, Size: 2199 bytes --] Hi Wang Yong, I have changed the expected error for root user in case02 as following. From tcase[2].err = EACCES to tcase[2].err = EPERM (For root user) . Pls check the attached patch for the same. On Sat, Aug 15, 2009 at 8:04 AM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: > rohit verma wrote: >> Hi Wang Yong, >> >> I am getting following O/P for case02 : >> >> As root user: >> >> utimes01 0 TINFO : (case02) START >> EXPECT: return value(ret)=-1 errno=13 (Permission denied) >> RESULT: return value(ret)=-1 errno=1 (Operation not permitted) >> utimes01 0 TINFO : (case02) END => NG >> >> As non-root user: >> utimes01 0 TINFO : (case02) START >> seteuid failed. >> utimes01 0 TINFO : (case02) END => OK >> >> Are you getting the same? >> >> >> > > yes, the same result. > >> >> On Fri, Aug 14, 2009 at 12:03 PM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: >> >>> rohit verma wrote: >>> >>>> Hi Wang Yong, >>>> >>>> I have observed the following thing in case02 of the test case >>>> utimes01 in latest ltp release. >>>> >>>> Expected error value is EACCES (In the code below) >>>> But the actual error value is EPERM.I have checked this on 2.6.27 and >>>> 2.6.29 kernel. >>>> >>>> >>> You can try root user and noroot user, the return error is different. >>> >>> >>>> static struct test_case tcase[] = { >>>> >>>> { // case00 >>>> ... >>>> }, >>>> { // case01 >>>> ... >>>> }, >>>> { // case02 >>>> .ttype = NORMAL, >>>> .a_sec = 1000, >>>> .m_sec = 2000, >>>> .user = "nobody", >>>> .ret = -1, >>>> .err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM >>>> }, >>>> { // case03 >>>> ... >>>> }, >>>> >>>> { // case04 >>>> ... >>>> }, >>>> }; >>>> >>>> Kindly confirm whether you are facing the same issue at your end. >>>> >>>> >>>> >>> >>> >> >> >> >> > > > -- Regards, Rohit [-- Attachment #2: utimes01_patch.txt --] [-- Type: text/plain, Size: 1158 bytes --] Signed-off-by: rohit verma (rohit170309@gmail.com) =============================================================================== diff -ruNB ltp-full-20090731/testcases/kernel/syscalls/utimes/utimes01.c ltp-full-20090731_new/testcases/kernel/syscalls/utimes/utimes01.c --- ltp-full-20090731/testcases/kernel/syscalls/utimes/utimes01.c 2009-07-21 12:05:23.000000000 +0530 +++ ltp-full-20090731_new/testcases/kernel/syscalls/utimes/utimes01.c 2009-08-21 06:24:08.000000000 +0530 @@ -338,6 +338,7 @@ int i; int lc; /* loop counter */ char *msg; /* message returned from parse_opts */ + uid_t uid; struct option long_options[] = { { "debug", no_argument, 0, 'd' }, @@ -356,7 +357,13 @@ setup(); - /* Check looping state if -i option given */ + /* As a root user error value should be EPERM for case02 */ + uid = getuid(); + if (uid == 0) { + tcase[2].err = EPERM; + } + + /* Check looping state if -i option given */ for (lc = 0; TEST_LOOPING(lc); ++lc) { Tst_count = 0; for (testno = 0; testno < TST_TOTAL; ++testno) { [-- 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] 7+ messages in thread
* Re: [LTP] utimes01 test case issue 2009-08-21 5:14 ` rohit verma @ 2009-08-27 8:39 ` rohit verma 2009-08-27 10:20 ` Subrata Modak 0 siblings, 1 reply; 7+ messages in thread From: rohit verma @ 2009-08-27 8:39 UTC (permalink / raw) To: subrata, Wei Yongjun; +Cc: ltp-list Hi Wang Yong/Subrata, Kindly confirm whether the patch which i send you on 21st Aug is working fine. Thank you, On Fri, Aug 21, 2009 at 10:44 AM, rohit verma<rohit.170309@gmail.com> wrote: > Hi Wang Yong, > > I have changed the expected error for root user in case02 as following. > > From tcase[2].err = EACCES to tcase[2].err = EPERM (For root user) . > > Pls check the attached patch for the same. > > > On Sat, Aug 15, 2009 at 8:04 AM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: >> rohit verma wrote: >>> Hi Wang Yong, >>> >>> I am getting following O/P for case02 : >>> >>> As root user: >>> >>> utimes01 0 TINFO : (case02) START >>> EXPECT: return value(ret)=-1 errno=13 (Permission denied) >>> RESULT: return value(ret)=-1 errno=1 (Operation not permitted) >>> utimes01 0 TINFO : (case02) END => NG >>> >>> As non-root user: >>> utimes01 0 TINFO : (case02) START >>> seteuid failed. >>> utimes01 0 TINFO : (case02) END => OK >>> >>> Are you getting the same? >>> >>> >>> >> >> yes, the same result. >> >>> >>> On Fri, Aug 14, 2009 at 12:03 PM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: >>> >>>> rohit verma wrote: >>>> >>>>> Hi Wang Yong, >>>>> >>>>> I have observed the following thing in case02 of the test case >>>>> utimes01 in latest ltp release. >>>>> >>>>> Expected error value is EACCES (In the code below) >>>>> But the actual error value is EPERM.I have checked this on 2.6.27 and >>>>> 2.6.29 kernel. >>>>> >>>>> >>>> You can try root user and noroot user, the return error is different. >>>> >>>> >>>>> static struct test_case tcase[] = { >>>>> >>>>> { // case00 >>>>> ... >>>>> }, >>>>> { // case01 >>>>> ... >>>>> }, >>>>> { // case02 >>>>> .ttype = NORMAL, >>>>> .a_sec = 1000, >>>>> .m_sec = 2000, >>>>> .user = "nobody", >>>>> .ret = -1, >>>>> .err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM >>>>> }, >>>>> { // case03 >>>>> ... >>>>> }, >>>>> >>>>> { // case04 >>>>> ... >>>>> }, >>>>> }; >>>>> >>>>> Kindly confirm whether you are facing the same issue at your end. >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >>> >> >> >> > > > > -- > Regards, > Rohit > -- Regards, Rohit ------------------------------------------------------------------------------ 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] 7+ messages in thread
* Re: [LTP] utimes01 test case issue 2009-08-27 8:39 ` rohit verma @ 2009-08-27 10:20 ` Subrata Modak 0 siblings, 0 replies; 7+ messages in thread From: Subrata Modak @ 2009-08-27 10:20 UTC (permalink / raw) To: rohit verma; +Cc: ltp-list On Thu, 2009-08-27 at 14:09 +0530, rohit verma wrote: > Hi Wang Yong/Subrata, > > Kindly confirm whether the patch which i send you on 21st Aug is working fine. I am waiting for Wangś confirmation/ack as you both were looking into that and had couple of conversation on that. Regards-- Subrata > > > Thank you, > > > On Fri, Aug 21, 2009 at 10:44 AM, rohit verma<rohit.170309@gmail.com> wrote: > > Hi Wang Yong, > > > > I have changed the expected error for root user in case02 as following. > > > > From tcase[2].err = EACCES to tcase[2].err = EPERM (For root user) . > > > > Pls check the attached patch for the same. > > > > > > On Sat, Aug 15, 2009 at 8:04 AM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: > >> rohit verma wrote: > >>> Hi Wang Yong, > >>> > >>> I am getting following O/P for case02 : > >>> > >>> As root user: > >>> > >>> utimes01 0 TINFO : (case02) START > >>> EXPECT: return value(ret)=-1 errno=13 (Permission denied) > >>> RESULT: return value(ret)=-1 errno=1 (Operation not permitted) > >>> utimes01 0 TINFO : (case02) END => NG > >>> > >>> As non-root user: > >>> utimes01 0 TINFO : (case02) START > >>> seteuid failed. > >>> utimes01 0 TINFO : (case02) END => OK > >>> > >>> Are you getting the same? > >>> > >>> > >>> > >> > >> yes, the same result. > >> > >>> > >>> On Fri, Aug 14, 2009 at 12:03 PM, Wei Yongjun<yjwei@cn.fujitsu.com> wrote: > >>> > >>>> rohit verma wrote: > >>>> > >>>>> Hi Wang Yong, > >>>>> > >>>>> I have observed the following thing in case02 of the test case > >>>>> utimes01 in latest ltp release. > >>>>> > >>>>> Expected error value is EACCES (In the code below) > >>>>> But the actual error value is EPERM.I have checked this on 2.6.27 and > >>>>> 2.6.29 kernel. > >>>>> > >>>>> > >>>> You can try root user and noroot user, the return error is different. > >>>> > >>>> > >>>>> static struct test_case tcase[] = { > >>>>> > >>>>> { // case00 > >>>>> ... > >>>>> }, > >>>>> { // case01 > >>>>> ... > >>>>> }, > >>>>> { // case02 > >>>>> .ttype = NORMAL, > >>>>> .a_sec = 1000, > >>>>> .m_sec = 2000, > >>>>> .user = "nobody", > >>>>> .ret = -1, > >>>>> .err = EACCES, // RHEL4U1 + 2.6.18 returns EPERM > >>>>> }, > >>>>> { // case03 > >>>>> ... > >>>>> }, > >>>>> > >>>>> { // case04 > >>>>> ... > >>>>> }, > >>>>> }; > >>>>> > >>>>> Kindly confirm whether you are facing the same issue at your end. > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >> > >> > >> > > > > > > > > -- > > Regards, > > Rohit > > > > > ------------------------------------------------------------------------------ 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] 7+ messages in thread
end of thread, other threads:[~2009-08-27 10:20 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-08-13 8:31 [LTP] utimes01 test case issue rohit verma 2009-08-14 6:33 ` Wei Yongjun 2009-08-14 8:34 ` rohit verma 2009-08-15 2:34 ` Wei Yongjun 2009-08-21 5:14 ` rohit verma 2009-08-27 8:39 ` rohit verma 2009-08-27 10:20 ` Subrata Modak
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox