From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 8 May 2011 13:29:59 +0000 (+0000)
Subject: Use a more traditional for loop to iterate over the tests in execute_regression_tests()
X-Git-Tag: v_3_0_18~235
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/developer-manual/static/@default-cgi@show-status?a=commitdiff_plain;h=0d02d508e7386a0007a60aa47b403abc2f66c31d;p=privoxy.git

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.
---

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;