summaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/t/002_databases.pl
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2019-02-07 10:22:49 -0500
committerAndrew Dunstan <andrew@dunslane.net>2019-02-07 11:10:34 -0500
commita29e93e8f9da8f9176174901526bca4681b586e1 (patch)
tree1b2f659a147ee9d664f9f30fc39c4330057d24e9 /src/bin/pg_rewind/t/002_databases.pl
parent41740b9efb110e3187241e2c8c99ab63976f3ce3 (diff)
Fix searchpath and module location for pg_rewind and ssl TAP tests
The modules RewindTest.pm and ServerSetup.pm are really only useful for TAP tests, so they really belong in the TAP test directories. In addition, ServerSetup.pm is renamed to SSLServer.pm. The test scripts have their own directories added to the search path so that the relocated modules will be found, regardless of where the tests are run from, even on modern perl where "." is no longer in the searchpath. Discussion: https://postgr.es/m/e4b0f366-269c-73c3-9c90-d9cb0f4db1f9@2ndQuadrant.com Backpatch as appropriate to 9.5
Diffstat (limited to 'src/bin/pg_rewind/t/002_databases.pl')
-rw-r--r--src/bin/pg_rewind/t/002_databases.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/t/002_databases.pl b/src/bin/pg_rewind/t/002_databases.pl
index 20bdb4ab59d..8e63e5b6b96 100644
--- a/src/bin/pg_rewind/t/002_databases.pl
+++ b/src/bin/pg_rewind/t/002_databases.pl
@@ -3,6 +3,9 @@ use warnings;
use TestLib;
use Test::More tests => 4;
+use FindBin;
+use lib $FindBin::RealBin;
+
use RewindTest;
sub run_test