From: Andy Dougherty Date: Tue, 16 Nov 2004 12:11:00 +0000 (-0500) Subject: Allow more tries for t/op/time.t test 2. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f80d42683004bd2b22b92ed63c66637a4123be2;p=p5sagit%2Fp5-mst-13.2.git Allow more tries for t/op/time.t test 2. Message-ID: p4raw-id: //depot/perl@23505 --- diff --git a/t/op/time.t b/t/op/time.t index 2de3a03..2105e9d 100755 --- a/t/op/time.t +++ b/t/op/time.t @@ -32,14 +32,14 @@ while (($now = time) == $beg) { sleep 1 } ok($now > $beg && $now - $beg < 10, 'very basic time test'); -for ($i = 0; $i < 100000; $i++) { +for ($i = 0; $i < 1_000_000; $i++) { ($nowuser, $nowsys) = times; - $i = 200000 if $nowuser > $beguser && ( $nowsys >= $begsys || + $i = 2_000_000 if $nowuser > $beguser && ( $nowsys >= $begsys || (!$nowsys && !$begsys)); last if time - $beg > 20; } -ok($i >= 200000, 'very basic times test'); +ok($i >= 2_000_000, 'very basic times test'); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg); ($xsec,$foo) = localtime($now);