From: Michael Paquier Date: Wed, 11 Sep 2019 02:07:29 +0000 (+0900) Subject: Expand properly list of TAP tests used for prove in vcregress.pl X-Git-Tag: REL_11_6~90 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=8da17f3f50612300f11c79b2f28e0b5fae9ac0b2;p=postgresql.git 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 --- diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 231de675c17..76c62fabe81 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -207,7 +207,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;