aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-03-25 00:10:57 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-03-25 00:10:57 -0400
commitcd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0 (patch)
tree0424752a5ecb91b71a7de5c293562501822be378
parent87dee41f3ed6d6c2a93e7ff359776cfe24f145e0 (diff)
downloadpostgresql-cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0.tar.gz
postgresql-cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0.zip
Fix recovery test hang
The test would hang if a sufficient ~/.psqlrc was present. Fix by using psql -X.
-rw-r--r--src/test/recovery/t/011_crash_recovery.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recovery/t/011_crash_recovery.pl
index e5d1a0f6456..3c3718e6aa4 100644
--- a/src/test/recovery/t/011_crash_recovery.pl
+++ b/src/test/recovery/t/011_crash_recovery.pl
@@ -18,7 +18,7 @@ my ($stdin, $stdout, $stderr) = ('', '', '');
# an xact to be in-progress when we crash and we need to know
# its xid.
my $tx = IPC::Run::start(
- ['psql', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')],
+ ['psql', '-X', '-qAt', '-v', 'ON_ERROR_STOP=1', '-f', '-', '-d', $node->connstr('postgres')],
'<', \$stdin, '>', \$stdout, '2>', \$stderr);
$stdin .= q[
BEGIN;