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 <andrew@dunslane.net>
Discussion: https://postgr.es/m/A5A074CD-3198-492B-BE5E-7961EFC3733F@yesql.se
pull/81/head
Daniel Gustafsson 3 years ago
parent 412ad7a556
commit 7dac61402e
  1. 1
      contrib/amcheck/t/002_cic.pl
  2. 1
      contrib/amcheck/t/003_cic_2pc.pl
  3. 2
      src/bin/pg_basebackup/t/010_pg_basebackup.pl
  4. 1
      src/bin/pg_checksums/t/002_actions.pl
  5. 1
      src/bin/pg_dump/t/001_basic.pl
  6. 1
      src/bin/pg_dump/t/002_pg_dump.pl
  7. 1
      src/bin/pg_test_fsync/t/001_basic.pl
  8. 1
      src/bin/pg_test_timing/t/001_basic.pl
  9. 2
      src/bin/pg_verifybackup/t/002_algorithm.pl
  10. 2
      src/bin/pg_verifybackup/t/003_corruption.pl
  11. 2
      src/bin/pg_verifybackup/t/004_options.pl
  12. 2
      src/bin/pg_verifybackup/t/005_bad_manifest.pl
  13. 2
      src/bin/pg_verifybackup/t/006_encoding.pl
  14. 2
      src/bin/pg_verifybackup/t/007_wal.pl
  15. 1
      src/bin/pg_verifybackup/t/008_untar.pl
  16. 2
      src/bin/pg_verifybackup/t/009_extract.pl
  17. 1
      src/bin/pg_verifybackup/t/010_client_untar.pl
  18. 1
      src/bin/pgbench/t/001_pgbench_with_server.pl
  19. 1
      src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
  20. 1
      src/test/modules/test_pg_dump/t/001_base.pl
  21. 1
      src/test/perl/PostgreSQL/Test/Cluster.pm
  22. 1
      src/test/recovery/t/011_crash_recovery.pl
  23. 1
      src/test/recovery/t/013_crash_restart.pl
  24. 1
      src/test/recovery/t/017_shm.pl
  25. 1
      src/test/recovery/t/020_archive_status.pl
  26. 1
      src/test/recovery/t/021_row_visibility.pl

@ -5,7 +5,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

@ -5,7 +5,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

@ -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);

@ -6,7 +6,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

@ -4,7 +4,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

@ -4,7 +4,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

@ -4,7 +4,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Utils;
use Test::More;

@ -4,7 +4,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Utils;
use Test::More;

@ -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;

@ -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;

@ -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;

@ -6,8 +6,6 @@
use strict;
use warnings;
use Cwd;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

@ -5,8 +5,6 @@
use strict;
use warnings;
use Cwd;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

@ -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;

@ -7,7 +7,6 @@
use strict;
use warnings;
use Config;
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

@ -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;

@ -6,7 +6,6 @@
use strict;
use warnings;
use Config;
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

@ -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');

@ -4,7 +4,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

@ -4,7 +4,6 @@
use strict;
use warnings;
use Config;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

@ -93,7 +93,6 @@ use warnings;
use Carp;
use Config;
use Cwd;
use Fcntl qw(:mode);
use File::Basename;
use File::Path qw(rmtree);

@ -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);

@ -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);

@ -6,7 +6,6 @@
#
use strict;
use warnings;
use Config;
use File::stat qw(stat);
use IPC::Run 'run';
use PostgreSQL::Test::Cluster;

@ -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(

@ -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');

Loading…
Cancel
Save