]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Remove parentheses around test argument lists
authorJacob Bachmeyer <jcb@gnu.org>
Thu, 9 Feb 2023 05:30:00 +0000 (23:30 -0600)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Mar 2023 19:49:52 +0000 (12:49 -0700)
This works around a parser bug in Perl 5.6.2.
* t/pm/General.pl: Remove parentheses on argument lists.

Copyright-paperwork-exempt: yes

t/pm/General.pl

index bb99fce83ac7514299ea1b321b7d871fa19a7dab..fafedbc466b73af364fb0999aabb7bb841af0345 100644 (file)
@@ -18,10 +18,10 @@ use Automake::General;
 my $failed = 0;
 
 # Check 'none'.
-my $none_positive = none { $_[0] < 0 } (1, 7, 3, 8, 9);
+my $none_positive = none { $_[0] < 0 } 1, 7, 3, 8, 9;
 $failed = 1 if ($none_positive == 0);
 
-my $none_gt_8 = none { $_[0] >= 8 } (1, 7, 3, 8, 9);
+my $none_gt_8 = none { $_[0] >= 8 } 1, 7, 3, 8, 9;
 $failed = 1 if ($none_gt_8 == 1);
 
 exit $failed;