Skip to content

Commit fb2641f

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 2edf14f commit fb2641f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/vcregress.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ sub tap_check
196196
unless $config->{tap_tests};
197197

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy