From cd07f73d3225c092f4cd0e7bf1cab11ac9f8c1f0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 25 Mar 2017 00:10:57 -0400 Subject: [PATCH] Fix recovery test hang The test would hang if a sufficient ~/.psqlrc was present. Fix by using psql -X. --- src/test/recovery/t/011_crash_recovery.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recovery/t/011_crash_recovery.pl index e5d1a0f645..3c3718e6aa 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; -- 2.40.0