From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1MZKL6-0005Dr-M4 for ltp-list@lists.sourceforge.net; Fri, 07 Aug 2009 07:58:12 +0000 Received: from mail-qy0-f181.google.com ([209.85.221.181]) by 29vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1MZKL0-0001D1-RS for ltp-list@lists.sourceforge.net; Fri, 07 Aug 2009 07:58:12 +0000 Received: by qyk11 with SMTP id 11so1408418qyk.28 for ; Fri, 07 Aug 2009 00:58:00 -0700 (PDT) Message-ID: <4A7BCF7F.80103@petalogix.com> Date: Fri, 07 Aug 2009 08:53:51 +0200 From: Michal Simek MIME-Version: 1.0 References: <4A7AA1BE.9050901@petalogix.com> <8368651DACC1964480F951191B94A078F8A313@svexch01.mvista.com> In-Reply-To: <8368651DACC1964480F951191B94A078F8A313@svexch01.mvista.com> Subject: Re: [LTP] utimes01 Reply-To: michal.simek@petalogix.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net 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