From 0d02d508e7386a0007a60aa47b403abc2f66c31d Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 8 May 2011 13:29:59 +0000 Subject: [PATCH] Use a more traditional for loop to iterate over the tests in execute_regression_tests() While it doesn't really matter for the number of tests we have, there's no reason to keep all the test numbers in memory. --- tools/privoxy-regression-test.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl index e5ce374e..d353fd06 100755 --- a/tools/privoxy-regression-test.pl +++ b/tools/privoxy-regression-test.pl @@ -7,7 +7,7 @@ # A regression test "framework" for Privoxy. For documentation see: # perldoc privoxy-regression-test.pl # -# $Id: privoxy-regression-test.pl,v 1.67 2011/05/08 13:27:53 fabiankeil Exp $ +# $Id: privoxy-regression-test.pl,v 1.68 2011/05/08 13:28:13 fabiankeil Exp $ # # Wish list: # @@ -504,7 +504,7 @@ sub execute_regression_tests () { my $failures; my $skipped = 0; - for my $s (0 .. @regression_tests - 1) { + for (my $s = 0; $s < @regression_tests; $s++) { my $r = 0; -- 2.39.2