Make TAP test suites to work, when @INC does not contain current dir.
authorHeikki Linnakangas
Fri, 7 Oct 2016 18:48:21 +0000 (21:48 +0300)
committerHeikki Linnakangas
Fri, 7 Oct 2016 19:00:28 +0000 (22:00 +0300)
Recent Perl and/or new Linux distributions are starting to remove "." from
the @INC list by default. That breaks pg_rewind and ssl test suites, which
use helper perl modules that reside in the same directory. To fix, add the
current source directory explicitly to prove's include dir.

The vcregress.pl script probably also needs something like this, but I
wasn't able to remove '.' from @INC on Windows to test this, and don't want
to try doing that blindly.

Discussion: <20160908204529[email protected]>

src/Makefile.global.in

index 333cb179b9603bd0ee87ed320fb0b82610557a73..6facb990936a31f99947be2dbec3b18de8898b14 100644 (file)
@@ -317,7 +317,9 @@ BZIP2   = bzip2
 # Testing
 
 PROVE = @PROVE@
-PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/
+# There are common routines in src/test/perl, and some test suites have
+# extra perl modules in their own directory.
+PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/ -I $(srcdir)
 PROVE_FLAGS = --verbose
 
 # prepend to path if already set, else just set it