summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPeter Eisentraut2018-04-26 18:13:46 +0000
committerPeter Eisentraut2018-04-27 15:37:43 +0000
commit76ece169746f50652771a9fa9adc66d207e9d6f7 (patch)
treeda27731b6e0f280baade6b9ec5f0b6929a2dbf22 /src/test
parentd4f16d50713077e69f8833df6b99d1eab0be1c33 (diff)
perltidy: Add option --nooutdent-long-comments
Diffstat (limited to 'src/test')
-rw-r--r--src/test/modules/test_pg_dump/t/001_base.pl4
-rw-r--r--src/test/perl/PostgresNode.pm12
-rw-r--r--src/test/recovery/t/006_logical_decoding.pl2
-rw-r--r--src/test/recovery/t/011_crash_recovery.pl2
-rw-r--r--src/test/ssl/ServerSetup.pm10
5 files changed, 15 insertions, 15 deletions
diff --git a/src/test/modules/test_pg_dump/t/001_base.pl b/src/test/modules/test_pg_dump/t/001_base.pl
index e49dffd4687..10716ab2386 100644
--- a/src/test/modules/test_pg_dump/t/001_base.pl
+++ b/src/test/modules/test_pg_dump/t/001_base.pl
@@ -370,7 +370,7 @@ my %tests = (
section_pre_data => 1, },
unlike => { no_privs => 1, }, },
- # Objects included in extension part of a schema created by this extension */
+ # Objects included in extension part of a schema created by this extension */
'CREATE TABLE regress_pg_dump_schema.test_table' => {
regexp => qr/^
\QCREATE TABLE regress_pg_dump_schema.test_table (\E
@@ -498,7 +498,7 @@ foreach my $run (sort keys %pgdump_runs)
# Then count all the tests run against each run
foreach my $test (sort keys %tests)
{
-# If there is a like entry, but no unlike entry, then we will test the like case
+ # If there is a like entry, but no unlike entry, then we will test the like case
if ($tests{$test}->{like}->{$test_key}
&& !defined($tests{$test}->{unlike}->{$test_key}))
{
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm
index 976e95f448b..3b06e781746 100644
--- a/src/test/perl/PostgresNode.pm
+++ b/src/test/perl/PostgresNode.pm
@@ -1197,12 +1197,12 @@ sub psql
my $ret;
- # Run psql and capture any possible exceptions. If the exception is
- # because of a timeout and the caller requested to handle that, just return
- # and set the flag. Otherwise, and for any other exception, rethrow.
- #
- # For background, see
- # http://search.cpan.org/~ether/Try-Tiny-0.24/lib/Try/Tiny.pm
+ # Run psql and capture any possible exceptions. If the exception is
+ # because of a timeout and the caller requested to handle that, just return
+ # and set the flag. Otherwise, and for any other exception, rethrow.
+ #
+ # For background, see
+ # http://search.cpan.org/~ether/Try-Tiny-0.24/lib/Try/Tiny.pm
do
{
local $@;
diff --git a/src/test/recovery/t/006_logical_decoding.pl b/src/test/recovery/t/006_logical_decoding.pl
index 588c71eda37..ff1ea0ead95 100644
--- a/src/test/recovery/t/006_logical_decoding.pl
+++ b/src/test/recovery/t/006_logical_decoding.pl
@@ -108,7 +108,7 @@ $node_master->safe_psql('otherdb',
SKIP:
{
- # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
+ # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
skip "Test fails on Windows perl", 2 if $Config{osname} eq 'MSWin32';
my $pg_recvlogical = IPC::Run::start(
diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recovery/t/011_crash_recovery.pl
index 7afa94a8274..6fe4786ed6a 100644
--- a/src/test/recovery/t/011_crash_recovery.pl
+++ b/src/test/recovery/t/011_crash_recovery.pl
@@ -10,7 +10,7 @@ use Config;
if ($Config{osname} eq 'MSWin32')
{
- # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
+ # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
plan skip_all => "Test fails on Windows perl";
}
else
diff --git a/src/test/ssl/ServerSetup.pm b/src/test/ssl/ServerSetup.pm
index e97d71e2578..5ca9e0defc7 100644
--- a/src/test/ssl/ServerSetup.pm
+++ b/src/test/ssl/ServerSetup.pm
@@ -115,7 +115,7 @@ sub configure_test_server_for_ssl
open my $sslconf, '>', "$pgdata/sslconfig.conf";
close $sslconf;
-# Copy all server certificates and keys, and client root cert, to the data dir
+ # Copy all server certificates and keys, and client root cert, to the data dir
copy_files("ssl/server-*.crt", $pgdata);
copy_files("ssl/server-*.key", $pgdata);
chmod(0600, glob "$pgdata/server-*.key") or die $!;
@@ -155,10 +155,10 @@ sub configure_hba_for_ssl
my ($node, $serverhost, $authmethod) = @_;
my $pgdata = $node->data_dir;
- # Only accept SSL connections from localhost. Our tests don't depend on this
- # but seems best to keep it as narrow as possible for security reasons.
- #
- # When connecting to certdb, also check the client certificate.
+ # Only accept SSL connections from localhost. Our tests don't depend on this
+ # but seems best to keep it as narrow as possible for security reasons.
+ #
+ # When connecting to certdb, also check the client certificate.
open my $hba, '>', "$pgdata/pg_hba.conf";
print $hba
"# TYPE DATABASE USER ADDRESS METHOD\n";