Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7dac614

Browse files
Remove unused module imports from TAP tests
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 <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent 412ad7a commit 7dac614

File tree

26 files changed

+0
-34
lines changed

26 files changed

+0
-34
lines changed

contrib/amcheck/t/002_cic.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use strict;
66
use warnings;
77

8-
use Config;
98
use PostgreSQL::Test::Cluster;
109
use PostgreSQL::Test::Utils;
1110

contrib/amcheck/t/003_cic_2pc.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use strict;
66
use warnings;
77

8-
use Config;
98
use PostgreSQL::Test::Cluster;
109
use PostgreSQL::Test::Utils;
1110

src/bin/pg_basebackup/t/010_pg_basebackup.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
use strict;
55
use warnings;
6-
use Cwd;
7-
use Config;
86
use File::Basename qw(basename dirname);
97
use File::Path qw(rmtree);
108
use Fcntl qw(:seek);

src/bin/pg_checksums/t/002_actions.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use strict;
88
use warnings;
9-
use Config;
109
use PostgreSQL::Test::Cluster;
1110
use PostgreSQL::Test::Utils;
1211

src/bin/pg_dump/t/001_basic.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use strict;
55
use warnings;
66

7-
use Config;
87
use PostgreSQL::Test::Cluster;
98
use PostgreSQL::Test::Utils;
109
use Test::More;

src/bin/pg_dump/t/002_pg_dump.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use strict;
55
use warnings;
66

7-
use Config;
87
use PostgreSQL::Test::Cluster;
98
use PostgreSQL::Test::Utils;
109
use Test::More;

src/bin/pg_test_fsync/t/001_basic.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use strict;
55
use warnings;
66

7-
use Config;
87
use PostgreSQL::Test::Utils;
98
use Test::More;
109

src/bin/pg_test_timing/t/001_basic.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use strict;
55
use warnings;
66

7-
use Config;
87
use PostgreSQL::Test::Utils;
98
use Test::More;
109

src/bin/pg_verifybackup/t/002_algorithm.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
use strict;
77
use warnings;
8-
use Cwd;
9-
use Config;
108
use File::Path qw(rmtree);
119
use PostgreSQL::Test::Cluster;
1210
use PostgreSQL::Test::Utils;

src/bin/pg_verifybackup/t/003_corruption.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
use strict;
77
use warnings;
8-
use Cwd;
9-
use Config;
108
use File::Path qw(rmtree);
119
use PostgreSQL::Test::Cluster;
1210
use PostgreSQL::Test::Utils;

src/bin/pg_verifybackup/t/004_options.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
use strict;
77
use warnings;
8-
use Cwd;
9-
use Config;
108
use File::Path qw(rmtree);
119
use PostgreSQL::Test::Cluster;
1210
use PostgreSQL::Test::Utils;

src/bin/pg_verifybackup/t/005_bad_manifest.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use strict;
88
use warnings;
9-
use Cwd;
10-
use Config;
119
use PostgreSQL::Test::Cluster;
1210
use PostgreSQL::Test::Utils;
1311
use Test::More;

src/bin/pg_verifybackup/t/006_encoding.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
use strict;
77
use warnings;
8-
use Cwd;
9-
use Config;
108
use PostgreSQL::Test::Cluster;
119
use PostgreSQL::Test::Utils;
1210
use Test::More;

src/bin/pg_verifybackup/t/007_wal.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
use strict;
77
use warnings;
8-
use Cwd;
9-
use Config;
108
use File::Path qw(rmtree);
119
use PostgreSQL::Test::Cluster;
1210
use PostgreSQL::Test::Utils;

src/bin/pg_verifybackup/t/008_untar.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
use strict;
99
use warnings;
10-
use Config;
1110
use File::Path qw(rmtree);
1211
use PostgreSQL::Test::Cluster;
1312
use PostgreSQL::Test::Utils;

src/bin/pg_verifybackup/t/009_extract.pl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use strict;
88
use warnings;
9-
use Cwd;
10-
use Config;
119
use File::Path qw(rmtree);
1210
use PostgreSQL::Test::Cluster;
1311
use PostgreSQL::Test::Utils;

src/bin/pg_verifybackup/t/010_client_untar.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use strict;
88
use warnings;
9-
use Config;
109
use File::Path qw(rmtree);
1110
use PostgreSQL::Test::Cluster;
1211
use PostgreSQL::Test::Utils;

src/bin/pgbench/t/001_pgbench_with_server.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use PostgreSQL::Test::Cluster;
88
use PostgreSQL::Test::Utils;
99
use Test::More;
10-
use Config;
1110

1211
# start a pgbench specific server
1312
my $node = PostgreSQL::Test::Cluster->new('main');

src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use strict;
55
use warnings;
66

7-
use Config;
87
use PostgreSQL::Test::Cluster;
98
use PostgreSQL::Test::Utils;
109
use Test::More;

src/test/modules/test_pg_dump/t/001_base.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use strict;
55
use warnings;
66

7-
use Config;
87
use PostgreSQL::Test::Cluster;
98
use PostgreSQL::Test::Utils;
109
use Test::More;

src/test/perl/PostgreSQL/Test/Cluster.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ use warnings;
9393

9494
use Carp;
9595
use Config;
96-
use Cwd;
9796
use Fcntl qw(:mode);
9897
use File::Basename;
9998
use File::Path qw(rmtree);

src/test/recovery/t/011_crash_recovery.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use PostgreSQL::Test::Cluster;
1010
use PostgreSQL::Test::Utils;
1111
use Test::More;
12-
use Config;
1312

1413
my $node = PostgreSQL::Test::Cluster->new('primary');
1514
$node->init(allows_streaming => 1);

src/test/recovery/t/013_crash_restart.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use PostgreSQL::Test::Cluster;
1717
use PostgreSQL::Test::Utils;
1818
use Test::More;
19-
use Config;
2019

2120
my $psql_timeout = IPC::Run::timer($PostgreSQL::Test::Utils::timeout_default);
2221

src/test/recovery/t/017_shm.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#
77
use strict;
88
use warnings;
9-
use Config;
109
use File::stat qw(stat);
1110
use IPC::Run 'run';
1211
use PostgreSQL::Test::Cluster;

src/test/recovery/t/020_archive_status.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use PostgreSQL::Test::Cluster;
1010
use PostgreSQL::Test::Utils;
1111
use Test::More;
12-
use Config;
1312

1413
my $primary = PostgreSQL::Test::Cluster->new('primary');
1514
$primary->init(

src/test/recovery/t/021_row_visibility.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use PostgreSQL::Test::Cluster;
1010
use PostgreSQL::Test::Utils;
1111
use Test::More;
12-
use Config;
1312

1413
# Initialize primary node
1514
my $node_primary = PostgreSQL::Test::Cluster->new('primary');

0 commit comments

Comments
 (0)