* [LTP] utimes01
@ 2009-08-06 9:26 Michal Simek
2009-08-07 0:56 ` Henry Yei
0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2009-08-06 9:26 UTC (permalink / raw)
To: LTP
Hi All,
Can you please run utimes01 test? I see there on x86 and Microblaze this
fault.
There is different errno value.
Thanks,
Michal
EXPECT: return value(ret)=-1 errno=13 (Permission denied)
RESULT: return value(ret)=-1 errno=1 (Operation not permitted)
[root@monstr utimes]# ./utimes01
utimes01 0 TINFO : (case00) START
utimes01 0 TINFO : E:0,1000 <=> R:0,1000
EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
RESULT: return value(ret)= 0 errno=0 (Success)
utimes01 0 TINFO : (case00) END => OK
utimes01 0 TINFO : (case01) START
utimes01 0 TINFO : E:1000,0 <=> R:1000,0
EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
RESULT: return value(ret)= 0 errno=0 (Success)
utimes01 0 TINFO : (case01) END => OK
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
utimes01 0 TINFO : (case03) START
EXPECT: return value(ret)=-1 errno=2 (No such file or directory)
RESULT: return value(ret)=-1 errno=2 (No such file or directory)
utimes01 0 TINFO : (case03) END => OK
utimes01 0 TINFO : (case04) START
EXPECT: return value(ret)=-1 errno=14 (Bad address)
RESULT: return value(ret)=-1 errno=14 (Bad address)
utimes01 0 TINFO : (case04) END => OK
utimes01 1 TFAIL : utimes01 failed - errno = 0 : Success
utimes01 0 TINFO : NG
--
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] 5+ messages in thread
* Re: [LTP] utimes01
2009-08-06 9:26 [LTP] utimes01 Michal Simek
@ 2009-08-07 0:56 ` Henry Yei
2009-08-07 6:53 ` Michal Simek
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Henry Yei @ 2009-08-07 0:56 UTC (permalink / raw)
To: michal.simek, LTP
Michal,
This is a known issue. If you look at the manpages it states the following under the BUGS section:
Linux is not careful to distinguish between the EACCES and EPERM
error returns. On the other hand, POSIX.1-2001 is buggy in its
error description for utimes().
utimes01 passes on 2.6.28-13 kernel (Ubuntu 9.04) as well as the 2.6.18 kernel in CentOS 4.
-----Original Message-----
From: Michal Simek [mailto:michal.simek@petalogix.com]
Sent: Thursday, August 06, 2009 2:26 AM
To: LTP
Subject: [LTP] utimes01
Hi All,
Can you please run utimes01 test? I see there on x86 and Microblaze this fault.
There is different errno value.
Thanks,
Michal
EXPECT: return value(ret)=-1 errno=13 (Permission denied)
RESULT: return value(ret)=-1 errno=1 (Operation not permitted)
[root@monstr utimes]# ./utimes01
utimes01 0 TINFO : (case00) START
utimes01 0 TINFO : E:0,1000 <=> R:0,1000
EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
RESULT: return value(ret)= 0 errno=0 (Success)
utimes01 0 TINFO : (case00) END => OK
utimes01 0 TINFO : (case01) START
utimes01 0 TINFO : E:1000,0 <=> R:1000,0
EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
RESULT: return value(ret)= 0 errno=0 (Success)
utimes01 0 TINFO : (case01) END => OK
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
utimes01 0 TINFO : (case03) START
EXPECT: return value(ret)=-1 errno=2 (No such file or directory)
RESULT: return value(ret)=-1 errno=2 (No such file or directory)
utimes01 0 TINFO : (case03) END => OK
utimes01 0 TINFO : (case04) START
EXPECT: return value(ret)=-1 errno=14 (Bad address)
RESULT: return value(ret)=-1 errno=14 (Bad address)
utimes01 0 TINFO : (case04) END => OK
utimes01 1 TFAIL : utimes01 failed - errno = 0 : Success
utimes01 0 TINFO : NG
--
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
------------------------------------------------------------------------------
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] 5+ messages in thread
* Re: [LTP] utimes01
2009-08-07 0:56 ` Henry Yei
@ 2009-08-07 6:53 ` Michal Simek
2009-08-07 12:42 ` Subrata Modak
2009-08-13 7:21 ` Mike Frysinger
2 siblings, 0 replies; 5+ messages in thread
From: Michal Simek @ 2009-08-07 6:53 UTC (permalink / raw)
To: Henry Yei; +Cc: LTP
Hi Henry,
> Michal,
>
> This is a known issue. If you look at the manpages it states the following under the BUGS section:
>
> Linux is not careful to distinguish between the EACCES and EPERM
> error returns. On the other hand, POSIX.1-2001 is buggy in its
> error description for utimes().
>
> utimes01 passes on 2.6.28-13 kernel (Ubuntu 9.04) as well as the 2.6.18 kernel in CentOS 4.
>
I found that in source code is that second return value too. But anyway
thanks for explanation.
Michal
>
> -----Original Message-----
> From: Michal Simek [mailto:michal.simek@petalogix.com]
> Sent: Thursday, August 06, 2009 2:26 AM
> To: LTP
> Subject: [LTP] utimes01
>
> Hi All,
>
> Can you please run utimes01 test? I see there on x86 and Microblaze this fault.
> There is different errno value.
>
> Thanks,
> Michal
>
> EXPECT: return value(ret)=-1 errno=13 (Permission denied)
> RESULT: return value(ret)=-1 errno=1 (Operation not permitted)
>
> [root@monstr utimes]# ./utimes01
> utimes01 0 TINFO : (case00) START
> utimes01 0 TINFO : E:0,1000 <=> R:0,1000
> EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
> RESULT: return value(ret)= 0 errno=0 (Success)
> utimes01 0 TINFO : (case00) END => OK
> utimes01 0 TINFO : (case01) START
> utimes01 0 TINFO : E:1000,0 <=> R:1000,0
> EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
> RESULT: return value(ret)= 0 errno=0 (Success)
> utimes01 0 TINFO : (case01) END => OK
> 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
> utimes01 0 TINFO : (case03) START
> EXPECT: return value(ret)=-1 errno=2 (No such file or directory)
> RESULT: return value(ret)=-1 errno=2 (No such file or directory)
> utimes01 0 TINFO : (case03) END => OK
> utimes01 0 TINFO : (case04) START
> EXPECT: return value(ret)=-1 errno=14 (Bad address)
> RESULT: return value(ret)=-1 errno=14 (Bad address)
> utimes01 0 TINFO : (case04) END => OK
> utimes01 1 TFAIL : utimes01 failed - errno = 0 : Success
> utimes01 0 TINFO : NG
>
> --
> 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
>
--
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] 5+ messages in thread
* Re: [LTP] utimes01
2009-08-07 0:56 ` Henry Yei
2009-08-07 6:53 ` Michal Simek
@ 2009-08-07 12:42 ` Subrata Modak
2009-08-13 7:21 ` Mike Frysinger
2 siblings, 0 replies; 5+ messages in thread
From: Subrata Modak @ 2009-08-07 12:42 UTC (permalink / raw)
To: Henry Yei, michal.simek; +Cc: LTP
Michal,
My x86_32 behaves fine with this Syscall test, may be because it is
2.6.18 kernel as henry said.
$ uname -a
Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386
GNU/Linux
$ ./testcases/bin/utimes01
utimes01 0 TINFO : (case00) START
utimes01 0 TINFO : E:0,1000 <=> R:0,1000
EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
RESULT: return value(ret)= 0 errno=0 (Success)
utimes01 0 TINFO : (case00) END => OK
utimes01 0 TINFO : (case01) START
utimes01 0 TINFO : E:1000,0 <=> R:1000,0
EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
RESULT: return value(ret)= 0 errno=0 (Success)
utimes01 0 TINFO : (case01) END => OK
utimes01 0 TINFO : (case02) START
seteuid failed.
utimes01 0 TINFO : (case02) END => OK
utimes01 0 TINFO : (case03) START
EXPECT: return value(ret)=-1 errno=2 (No such file or directory)
RESULT: return value(ret)=-1 errno=2 (No such file or directory)
utimes01 0 TINFO : (case03) END => OK
utimes01 0 TINFO : (case04) START
EXPECT: return value(ret)=-1 errno=14 (Bad address)
RESULT: return value(ret)=-1 errno=14 (Bad address)
utimes01 0 TINFO : (case04) END => OK
utimes01 1 TPASS : utimes call succeeded
[ltp-full-20090731]$ echo $?
0
However,
On Thu, 2009-08-06 at 17:56 -0700, Henry Yei wrote:
> Michal,
>
> This is a known issue. If you look at the manpages it states the following under the BUGS section:
>
> Linux is not careful to distinguish between the EACCES and EPERM
> error returns. On the other hand, POSIX.1-2001 is buggy in its
> error description for utimes().
>
> utimes01 passes on 2.6.28-13 kernel (Ubuntu 9.04) as well as the 2.6.18 kernel in CentOS 4.
Can you send across a patch to update include the above information in
the test case itself ?
Regards--
Subrata
>
>
> -----Original Message-----
> From: Michal Simek [mailto:michal.simek@petalogix.com]
> Sent: Thursday, August 06, 2009 2:26 AM
> To: LTP
> Subject: [LTP] utimes01
>
> Hi All,
>
> Can you please run utimes01 test? I see there on x86 and Microblaze this fault.
> There is different errno value.
>
> Thanks,
> Michal
>
> EXPECT: return value(ret)=-1 errno=13 (Permission denied)
> RESULT: return value(ret)=-1 errno=1 (Operation not permitted)
>
> [root@monstr utimes]# ./utimes01
> utimes01 0 TINFO : (case00) START
> utimes01 0 TINFO : E:0,1000 <=> R:0,1000
> EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
> RESULT: return value(ret)= 0 errno=0 (Success)
> utimes01 0 TINFO : (case00) END => OK
> utimes01 0 TINFO : (case01) START
> utimes01 0 TINFO : E:1000,0 <=> R:1000,0
> EXPECT: return value(ret)=(N >= 0) errno=0 (Success)
> RESULT: return value(ret)= 0 errno=0 (Success)
> utimes01 0 TINFO : (case01) END => OK
> 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
> utimes01 0 TINFO : (case03) START
> EXPECT: return value(ret)=-1 errno=2 (No such file or directory)
> RESULT: return value(ret)=-1 errno=2 (No such file or directory)
> utimes01 0 TINFO : (case03) END => OK
> utimes01 0 TINFO : (case04) START
> EXPECT: return value(ret)=-1 errno=14 (Bad address)
> RESULT: return value(ret)=-1 errno=14 (Bad address)
> utimes01 0 TINFO : (case04) END => OK
> utimes01 1 TFAIL : utimes01 failed - errno = 0 : Success
> utimes01 0 TINFO : NG
>
> --
> 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
>
> ------------------------------------------------------------------------------
> 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] 5+ messages in thread
* Re: [LTP] utimes01
2009-08-07 0:56 ` Henry Yei
2009-08-07 6:53 ` Michal Simek
2009-08-07 12:42 ` Subrata Modak
@ 2009-08-13 7:21 ` Mike Frysinger
2 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2009-08-13 7:21 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 519 bytes --]
On Thursday 06 August 2009 20:56:58 Henry Yei wrote:
> Michal,
please do not top post
> This is a known issue. If you look at the manpages it states the following
> under the BUGS section:
>
> Linux is not careful to distinguish between the EACCES and EPERM
> error returns. On the other hand, POSIX.1-2001 is buggy in its
> error description for utimes().
>
> utimes01 passes on 2.6.28-13 kernel (Ubuntu 9.04) as well as the 2.6.18
> kernel in CentOS 4.
if POSIX allows for both, then so should LTP
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: 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 #3: 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] 5+ messages in thread
end of thread, other threads:[~2009-08-13 7:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 9:26 [LTP] utimes01 Michal Simek
2009-08-07 0:56 ` Henry Yei
2009-08-07 6:53 ` Michal Simek
2009-08-07 12:42 ` Subrata Modak
2009-08-13 7:21 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox