Commit 5a2398b0 authored by Noah Misch's avatar Noah Misch

MSVC: Avoid warning when testing a TAP suite without PROVE_FLAGS.

Commit 7be5d8df 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).
parent d10b19e2
......@@ -198,7 +198,7 @@ sub tap_check
unless $config->{tap_tests};
my @flags;
foreach my $arg (0 .. scalar(@_))
foreach my $arg (0 .. scalar(@_) - 1)
{
next unless $_[$arg] =~ /^PROVE_FLAGS=(.*)/;
@flags = split(/\s+/, $1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment