Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5a2398b

Browse files
committed
MSVC: Avoid warning when testing a TAP suite without PROVE_FLAGS.
Commit 7be5d8d 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).
1 parent d10b19e commit 5a2398b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/vcregress.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ sub tap_check
198198
unless $config->{tap_tests};
199199

200200
my @flags;
201-
foreach my $arg (0 .. scalar(@_))
201+
foreach my $arg (0 .. scalar(@_) - 1)
202202
{
203203
next unless $_[$arg] =~ /^PROVE_FLAGS=(.*)/;
204204
@flags = split(/\s+/, $1);

0 commit comments

Comments
 (0)