automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI 1/2] {maint} tests: simplify a loop in gen-testsuite-part


From: Stefano Lattarini
Subject: [FYI 1/2] {maint} tests: simplify a loop in gen-testsuite-part
Date: Fri, 26 Oct 2012 12:32:35 +0200

* gen-testsuite-part: No need to loop on the (key, value) entries
of the %test_generators has: we only use the value, and never the
key.  So loop simply on the values.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 gen-testsuite-part | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen-testsuite-part b/gen-testsuite-part
index dee4cdd..57c1c63 100755
--- a/gen-testsuite-part
+++ b/gen-testsuite-part
@@ -273,7 +273,7 @@ EOF
 # FIXME: the following is not really right, since cannot compose wrapping
 # of tests matching more than one condition.  Still, there should be no
 # such test at the moment, so the limitation is (temporarily) acceptable.
-while (my ($k, $g) = each %test_generators)
+foreach my $g (values %test_generators)
   {
     my @wrapped_tests = grep {
       line_match ($g->{line_matcher}, $_)
-- 
1.8.0.rc2.11.gd25c58c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]