bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] tests: add test for newly-fixed performance problem


From: Jim Meyering
Subject: Re: [PATCH 2/2] tests: add test for newly-fixed performance problem
Date: Wed, 05 May 2010 12:05:20 +0200

Paolo Bonzini wrote:
> On 05/04/2010 07:32 PM, Jim Meyering wrote:
>>    $(AWK) 'BEGIN {for (i=0; i<13000; i++) print "aba"}' > in || fail=1
>
> Isn't an extra /dev/null needed?

Probably, for some versions of awk, but at least for gawk it's not --
in that this does not "hang":

    gawk 'BEGIN {for (i=0; i<13000; i++) print "aba"}' > in

To be on the safe side, the test now does this:

    $AWK 'BEGIN {for (i=0; i<13000; i++) print "aba"}' /dev/null > in




reply via email to

[Prev in Thread] Current Thread [Next in Thread]