aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2020-06-07 16:27:13 -0700
committerNoah Misch <noah@leadboat.com>2020-06-07 16:27:17 -0700
commitfb2641f8aa7f8544a2d00909e19fa83d42394154 (patch)
tree9552eb58b52a169f44158ddd02c86069af4c8d23 /src
parent2edf14f5ac346873e80d06bbaf1b4840bd9d4f6c (diff)
downloadpostgresql-fb2641f8aa7f8544a2d00909e19fa83d42394154.tar.gz
postgresql-fb2641f8aa7f8544a2d00909e19fa83d42394154.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/vcregress.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl
index a7130017659..dac60f6264c 100644
--- a/src/tools/msvc/vcregress.pl
+++ b/src/tools/msvc/vcregress.pl
@@ -196,7 +196,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);