Revision: 1335
Author: [email protected]
Date: Sat Jul 10 07:56:39 2010
Log: Be more liberal in assuming automated testing (and lax max timing).

http://code.google.com/p/perl-devel-nytprof/source/detail?r=1335

Modified:
 /trunk/t/lib/NYTProfTest.pm

=======================================
--- /trunk/t/lib/NYTProfTest.pm Thu May 27 02:42:14 2010
+++ /trunk/t/lib/NYTProfTest.pm Sat Jul 10 07:56:39 2010
@@ -479,10 +479,14 @@
         }
     }

+    my $automated_testing = $ENV{AUTOMATED_TESTING}
+        # also try to catch some cases where AUTOMATED_TESTING isn't set
+ # like http://www.cpantesters.org/cpan/report/07588221-b19f-3f77-b713-d32bba55d77f
+                        || ($ENV{PERL_BATCH}||'') eq 'yes';
     # if it was slower than expected then we're very generous, to allow for
# slow systems, e.g. cpan-testers running in cpu-starved virtual machines. # e.g., http://www.nntp.perl.org/group/perl.cpan.testers/2009/06/msg4227689.html - my $max_time_overrun_percentage = ($ENV{AUTOMATED_TESTING}) ? 400 : 200;
+    my $max_time_overrun_percentage = ($automated_testing) ? 400 : 200;
# e.g., http://www.nntp.perl.org/group/perl.cpan.testers/2009/06/msg4230206.html
     my $max_time_underrun_percentage = 90;

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to