summaryrefslogtreecommitdiff
path: root/gen-testsuite-part
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-10-26 11:04:14 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-10-26 11:04:14 +0200
commite3b0ad32d023b1553235f2cfe4a94e6ae4743825 (patch)
tree3ed809d274588b3555024da5d674dfd7e06c2769 /gen-testsuite-part
parent3c5c9394e2cbe6f88e0117f34c33b1e03cdaa5bb (diff)
downloadautomake-e3b0ad32d023b1553235f2cfe4a94e6ae4743825.tar.gz
tests: simplify a loop in gen-testsuite-part
* 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 <stefano.lattarini@gmail.com>
Diffstat (limited to 'gen-testsuite-part')
-rwxr-xr-xgen-testsuite-part2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen-testsuite-part b/gen-testsuite-part
index dee4cddd2..57c1c6331 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}, $_)