All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] commands/ade/ar01: the touched timestatp of file01.in should be newer than now
Date: Thu, 5 Mar 2015 01:26:17 -0500 (EST)	[thread overview]
Message-ID: <249535550.12516554.1425536777165.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1425535095.18011.24.camel@G08JYZSD130126.localdomain>

Hi,
----- Original Message -----
> Hi,
> 
> On Thu, 2015-03-05 at 13:01 +0800, Li Wang wrote:
> > Since the timestatp is older than now it cause this testcase
> > failed like this:
> > + touch -c -t 201503030303.55 file0.in
> > + ar -ru /tmp/ar01-28953/lib.a file0.in file2.in
> > ...
> > FAIL - ar with -u flag failed
> > 
> > >From the AR(1) Manual pager, ar -u:
> > If you would like to insert only those of the files you list
> > that are newer than existing members of the same names, use
> > this modifier.
> > 
> > Signed-off-by: Li Wang <liwang@redhat.com>
> > ---
> >  testcases/commands/ade/ar/ar01 | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/testcases/commands/ade/ar/ar01
> > b/testcases/commands/ade/ar/ar01
> > index 32fef11..c5181a3 100755
> > --- a/testcases/commands/ade/ar/ar01
> > +++ b/testcases/commands/ade/ar/ar01
> > @@ -483,7 +483,7 @@ do
> >  	File2time=`ar -tv $TCtmp/lib.a | grep file2.in`
> >  
> >  	#sleep 5
> > -	touch -c -t 201503030303.55 file0.in
> > +	touch -c -t 208503030303.55 file0.in
> 
> How about
> touch -c -t $(date --date='next day' +"%Y%m%d%H%M") file0.in
Agree! 
Absolutely it's better than the stable timestatp.

Li Wang

> 
> Thanks,
> Zeng
> 
> >  
> >  	ar -ru $TCtmp/lib.a file0.in file2.in 2>&1 1>/dev/null
> >  	File1time1=`ar -tv $TCtmp/lib.a | grep file0.in`
> 
> 
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2015-03-05  6:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05  5:01 [LTP] [PATCH] commands/ade/ar01: the touched timestatp of file01.in should be newer than now Li Wang
2015-03-05  5:58 ` Zeng Linggang
2015-03-05  6:26   ` Li Wang [this message]
2015-03-05  7:23     ` Wanlong Gao
2015-03-05  7:35       ` Li Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=249535550.12516554.1425536777165.JavaMail.zimbra@redhat.com \
    --to=liwang@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=zenglg.jy@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.