This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PING global maintainer/testsuite expert] Re: [patch bfd]: Win32 coff-i386 and coff-x86_64 broken in_reloc_p
2010/3/31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
> Hi Dave,
>
> * Dave Korn wrote on Wed, Mar 31, 2010 at 03:25:02PM CEST:
>> [PING]: ? Also, I'd like if one of the older hands or someone who knows about
>> the testsuite
>
> I'm neither. ?At least that's what I keep telling myself. ?;-)
>
>> can confirm it's ok to assume the presence and syntax of 'wc
>> -c'? ?(I expect it will be, but if it's not, I guess we could change the test
>> to use the freshly-built 'size' instead.)
>
> wc -c is POSIX and portable, but you cannot be sure about the amount of
> whitespace in the output: for example, IRIX, AIX, Tru64, FreeBSD,
> OpenBSD wc produce varying amounts of leading whitespace, GNU doesn't.
> Does tcl strip that? ?Otherwise, if all you're trying to find out is
> whether a file is nonempty or not, testing the exit status of shell
> 'test -s' works.
>
> Cheers,
> Ralf
>
There are no whitespaces. It is an binary file-format and no text.
Well here in this test the generated file has size of zero bytes. So
test -s works?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination