aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-09-11 11:07:44 +0900
committerMichael Paquier <michael@paquier.xyz>2019-09-11 11:07:44 +0900
commitbfd6db8560c531e669a28bb54a1e0a0f6faa702a (patch)
tree365e853ad63da4e188534f4817d9b2ee035a23e7 /src
parentdecff80ec8bc4487d16f401ed3c41b735b9544e1 (diff)
downloadpostgresql-bfd6db8560c531e669a28bb54a1e0a0f6faa702a.tar.gz
postgresql-bfd6db8560c531e669a28bb54a1e0a0f6faa702a.zip
Expand properly list of TAP tests used for prove in vcregress.pl
Depending on the system used, t/*.pl may not be expanded into a list of tests which can be consumed by prove when attempting to run TAP tests on a given path. Fix that by using glob() directly in the script, to make sure that a complete list of tests is provided. This has not proved to be an issue with MSVC as the list was properly expanded, but it is on Linux with perl's system(). This is extracted from a larger patch. Author: Tom Lane Discussion: https://postgr.es/m/6628.1567958876@sss.pgh.pa.us Backpatch-through: 9.4
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 2274d5fafd5..31d064f26fb 100644
--- a/src/tools/msvc/vcregress.pl
+++ b/src/tools/msvc/vcregress.pl
@@ -199,7 +199,7 @@ sub tap_check
my $dir = shift;
chdir $dir;
- my @args = ("prove", @flags, "t/*.pl");
+ my @args = ("prove", @flags, glob("t/*.pl"));
# adjust the environment for just this test
local %ENV = %ENV;