[LLVMdev] Non-portable use time command in RunSafely.sh

Reid Spencer reid at x10sys.com
Sat Jun 26 12:17:02 PDT 2004


Thanks, Vladimir. 

Patch applied:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040621/015503.html

Reid.

On Sat, 2004-06-26 at 06:32, Vladimir Merzliakov wrote:
> If you look at http://npt.cc.rsu.ru/testresults-X86-FreeBSD/index.html
> then you see that all program test have '*' in run time columns.
> 
> I think problem in using plain 'time' command in RunSafely.sh
> 
> At FreeBSD 'time <program> <args>' call generate output in format "
> 0,00 real         0,00 user         0,00 sys"
> for *.time files instead expected
> "real %e
> user %U
> sys %S
> "
> 
> And later failed at  '-grep "^real" Output/$*.out-nat.time >> $@' and same
> command in makefiles.
> 
> I don't know default format 'time' output for Linux, but correct portable
> 'time -p' call already used in NightlyTest.pl without problems .
> And then I think can be also safely used in RunSafely.sh.
> 
> Patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040626/9d8112aa/attachment.sig>


More information about the llvm-dev mailing list