Remove unused module imports from TAP tests
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 24 Mar 2022 19:51:40 +0000 (20:51 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 24 Mar 2022 19:51:40 +0000 (20:51 +0100)
The Config and Cwd modules were no longer used, but remained imported,
in a number of tests.  Remove to keep the imports to the actually used
modules.

Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/A5A074CD-3198-492B-BE5E-7961EFC3733F@yesql.se

26 files changed:
contrib/amcheck/t/002_cic.pl
contrib/amcheck/t/003_cic_2pc.pl
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_checksums/t/002_actions.pl
src/bin/pg_dump/t/001_basic.pl
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_test_fsync/t/001_basic.pl
src/bin/pg_test_timing/t/001_basic.pl
src/bin/pg_verifybackup/t/002_algorithm.pl
src/bin/pg_verifybackup/t/003_corruption.pl
src/bin/pg_verifybackup/t/004_options.pl
src/bin/pg_verifybackup/t/005_bad_manifest.pl
src/bin/pg_verifybackup/t/006_encoding.pl
src/bin/pg_verifybackup/t/007_wal.pl
src/bin/pg_verifybackup/t/008_untar.pl
src/bin/pg_verifybackup/t/009_extract.pl
src/bin/pg_verifybackup/t/010_client_untar.pl
src/bin/pgbench/t/001_pgbench_with_server.pl
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
src/test/modules/test_pg_dump/t/001_base.pl
src/test/perl/PostgreSQL/Test/Cluster.pm
src/test/recovery/t/011_crash_recovery.pl
src/test/recovery/t/013_crash_restart.pl
src/test/recovery/t/017_shm.pl
src/test/recovery/t/020_archive_status.pl
src/test/recovery/t/021_row_visibility.pl

index b8e4ac7cf41ba6dbeabf8009f6043ef90c0b0f66..32e4e4abd844de7d82ea3270c7928f779d84c480 100644 (file)
@@ -5,7 +5,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 
index e66ccd93f18266a80179e192abfa4b0dd25c6d12..1a2cceae49aa48c9df5a47c4f36992837213aa67 100644 (file)
@@ -5,7 +5,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 
index 2869a239e7c589a7b7edc4fd2cccf27f268f831a..9aa35a16a45dd4c154d6c4aec0eaee600e698f56 100644 (file)
@@ -3,8 +3,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use File::Basename qw(basename dirname);
 use File::Path qw(rmtree);
 use Fcntl qw(:seek);
index 751f732451f99ef0c8ce964337986280780ca65d..62c608eaf6cc0932f6a131933a761695aa092bc5 100644 (file)
@@ -6,7 +6,6 @@
 
 use strict;
 use warnings;
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 
index 48faeb43714eb900ae7f22861d5e04566c3348d5..e0bf3eb032a1842a07803808dcaaf4fd0b052471 100644 (file)
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 19f908f6006d6cfee74035c5d88d08a355b8c15e..0e724b0366dac23e05b54a44cd2b0d546e95eb65 100644 (file)
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 0b579dde9d6d3ede38ac48a16f6f9cc9acc4427c..8c5c0e7967b4a1034f37d5a474c04c6bb481534c 100644 (file)
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Utils;
 use Test::More;
 
index ef9f6d674694d942ebec7786fecf99a4fdd2916d..51bf68b0e10969507de2e7f607ec521d72a0f5f6 100644 (file)
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Utils;
 use Test::More;
 
index 20e3ca587a53f608a4bd6a1b5654e336da4c06e2..ca2c0f0c7bcbd1adc0edec3fd8c693cb373d6e51 100644 (file)
@@ -5,8 +5,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 406c0c9877adafd04f1d30caf557525c324543b6..843016ad80c549bce0a645a0d523d04fa6b54424 100644 (file)
@@ -5,8 +5,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 7461dee03fc82aa153526c97c40f1769d4ec22a6..6fdd74e5eeacf62483d574a0c63615f830c8450d 100644 (file)
@@ -5,8 +5,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 118beb53d77c1bc28622e85a22c1e89d806dfdc0..74d0a8d1b20651dea4b0f62bc7cb1fea30868a23 100644 (file)
@@ -6,8 +6,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index ce45c919a8c0f28ac88c3e4b05593861d9d6ccf3..210f269d592a9094bd93e4cda16eeeefae974a2a 100644 (file)
@@ -5,8 +5,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 56fcd84bec71be050e74d5e3079dcdd2a745d3fe..bef2701ef75741f20c1c111af00eb212729e0c43 100644 (file)
@@ -5,8 +5,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 98d09ce40c2f120345349b838c96a178b538571e..915249a19def7d60ee1e0dbb47e6ffba0d7d0acf 100644 (file)
@@ -7,7 +7,6 @@
 
 use strict;
 use warnings;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 9f9cc7540b623429d8f2e164492ea2b07a9ff2d7..41a5b370cc5c0a035f0e942e6a7db344f2cfc0e9 100644 (file)
@@ -6,8 +6,6 @@
 
 use strict;
 use warnings;
-use Cwd;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 487e30e826dc049fd8fb62a71b0f228cc4084665..488a6d1edeebd2baf5bef53f357172d79be1948f 100644 (file)
@@ -6,7 +6,6 @@
 
 use strict;
 use warnings;
-use Config;
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 3eb5905e5ab38458e9895abc9b5b13d69ca3c8b1..60cae1e843341e336337caf590d9c1ae1c76046e 100644 (file)
@@ -7,7 +7,6 @@ use warnings;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
-use Config;
 
 # start a pgbench specific server
 my $node = PostgreSQL::Test::Cluster->new('main');
index 0c164dcaba57dca6e5f9aaf53a66fe0fcd1806cf..cc79d96d473561512c96389b6fc8f4ac0f2d1b35 100644 (file)
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index c73bd37835eebd0c93425b0df7220c5fae5004dc..84a35590b75eb12a692b85171341220bae68b4ec 100644 (file)
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use Config;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index e7b91611374246db6b685d233d964fc5d8715031..0295731bd0acfe058906f7862d229ec6248c3717 100644 (file)
@@ -93,7 +93,6 @@ use warnings;
 
 use Carp;
 use Config;
-use Cwd;
 use Fcntl qw(:mode);
 use File::Basename;
 use File::Path qw(rmtree);
index 14154d1ce0f61ae37d1fe680218df7f5a9678e3f..1b57d01046d700f77e15946370224d288e0f4d8d 100644 (file)
@@ -9,7 +9,6 @@ use warnings;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
-use Config;
 
 my $node = PostgreSQL::Test::Cluster->new('primary');
 $node->init(allows_streaming => 1);
index 44c4c62cb75df5c4731161a2d8123204dbffffaf..8807c0a291973663dfc5e78acbcd016876953bcd 100644 (file)
@@ -16,7 +16,6 @@ use warnings;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
-use Config;
 
 my $psql_timeout = IPC::Run::timer($PostgreSQL::Test::Utils::timeout_default);
 
index 713e6f068d7695cb8f056a6f1ec620e56bff63f4..875657b4bb688dc366369e17615387de3f3413d5 100644 (file)
@@ -6,7 +6,6 @@
 #
 use strict;
 use warnings;
-use Config;
 use File::stat qw(stat);
 use IPC::Run 'run';
 use PostgreSQL::Test::Cluster;
index cbff26e122a284e0b4c275980fc0ab5b1b37e31a..e6e4eb56a90f6ad1313d7612b858e3c641b84b98 100644 (file)
@@ -9,7 +9,6 @@ use warnings;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
-use Config;
 
 my $primary = PostgreSQL::Test::Cluster->new('primary');
 $primary->init(
index 55d8c31b56f9b3f6d054f4c0556b6eb0de335426..aeaf37cfad3ec1f7a8d987331080c8b512fdcf3f 100644 (file)
@@ -9,7 +9,6 @@ use warnings;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
-use Config;
 
 # Initialize primary node
 my $node_primary = PostgreSQL::Test::Cluster->new('primary');