Remove more unused module imports from TAP tests
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Sun, 27 Mar 2022 20:26:40 +0000 (22:26 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Sun, 27 Mar 2022 20:26:40 +0000 (22:26 +0200)
This is a follow-up to commit 7dac61402 which removed a set of unused
modules from the TAP test.

The Config references in the pg_ctl and pg_rewind tests were removed
in commit 1c6d46293.  Fcntl ':mode' and File::stat in the pg_ctl test
were added in c37b3d08c which was probably a leftover from an earlier
version of the patch, as the function using these was added to another
module in that commit.

The Config reference in the ldap test was added in ee56c3b21 which in
turn use $^O instead of interrogating Config.

Author: Dagfinn Ilmari MannsÃ¥ker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/87lewyqk45.fsf@wibble.ilmari.org

src/bin/pg_ctl/t/001_start_stop.pl
src/bin/pg_rewind/t/RewindTest.pm
src/test/ldap/t/001_auth.pl

index 3b45390ced76233b212d857b06f590e701f66fa0..fdffd76d9914f313cdba624b244c5d7bb0b91062 100644 (file)
@@ -4,9 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
-use Fcntl ':mode';
-use File::stat qw{lstat};
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 5651602858a1de2fcce9b14da3833369de4af2ed..1e34768e2705fca8540678c355aa176517b473e2 100644 (file)
@@ -35,7 +35,6 @@ use strict;
 use warnings;
 
 use Carp;
-use Config;
 use Exporter 'import';
 use File::Copy;
 use File::Path qw(rmtree);
index 9f15248935a74288501e3811cba3312967f06dc0..b342146e556afcf874e8902528bdfb4a6c681418 100644 (file)
@@ -6,7 +6,6 @@ use warnings;
 use PostgreSQL::Test::Utils;
 use PostgreSQL::Test::Cluster;
 use Test::More;
-use Config;
 
 
 my ($slapd, $ldap_bin_dir, $ldap_schema_dir);