MSVC: Avoid warning when testing a TAP suite without PROVE_FLAGS.
Commit 7be5d8df1f74b78620167d3abf32ee607e728919 surfaced the logic error, which had no functional implications, by adding "use warnings". The buildfarm always customizes PROVE_FLAGS, so the warning did not appear there. Back-patch to 9.5 (all supported versions).
This commit is contained in:
parent
b5d69b7c22
commit
9b5f85fb0a
@ -198,7 +198,7 @@ sub tap_check
|
|||||||
unless $config->{tap_tests};
|
unless $config->{tap_tests};
|
||||||
|
|
||||||
my @flags;
|
my @flags;
|
||||||
foreach my $arg (0 .. scalar(@_))
|
foreach my $arg (0 .. scalar(@_) - 1)
|
||||||
{
|
{
|
||||||
next unless $_[$arg] =~ /^PROVE_FLAGS=(.*)/;
|
next unless $_[$arg] =~ /^PROVE_FLAGS=(.*)/;
|
||||||
@flags = split(/\s+/, $1);
|
@flags = split(/\s+/, $1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user