[pph] Expect checksums for tests marked with pph asm xdiff (issue4744043)

Andreas Schwab schwab@linux-m68k.org
Mon Jul 18 23:22:00 GMT 2011


Gabriel Charette <gchare@google.com> writes:

> On Sat, Jul 16, 2011 at 12:59 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>
>> gchare@google.com (Gabriel Charette) writes:
>>
>> > +         set expectedSum [exec tr -d \} << [exec cut -f 4 -d\  << $xdiff_entry]]
>
> $xdiffentry is set to something like {{pph asm diff 123456}}, so i
> need tr and cut to extract 123456

tcl can everything tr and cut can do (with the above options anyway).

> If there are ways to do this directly in TCL, without using exec
> calls, I'd be glad to know.

Read split(n) and string(n).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list