This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
new perf test in pat.t: avoid timing failure
authorDavid Mitchell <davem@iabyn.com>
Sat, 9 Apr 2016 12:17:21 +0000 (13:17 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sat, 9 Apr 2016 12:37:56 +0000 (13:37 +0100)
commit31f8924d9e997070af9ca909e3a78848c4d1972b
treed516a4500bd6943c14f840c8161cecf9f6f0452c
parentfc82b82ef4784a38877f35f56ee16f14934460ce
new perf test in pat.t: avoid timing failure

A new performance test in re/pat.t added by v5.23.9-58-gd14d585 could
occasionally fails to a timing issue. It was checking that the the
test took less than 1 sec to run; but since the clock usually has a
granularity of 1 sec, it could fail if the test ran over a tick boundary.

Change the condition to <= 1 sec, and increase the time the test takes on
a bad perl - it was taking 4sec on my system; it now takes about 14sec,
so there's less chance of a bad perl passing.
t/re/pat.t