From d9ddc50bafc062ec1ae7f98b886b7950102d87fc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 12 Oct 2021 18:22:15 +0200 Subject: [PATCH] psql: Fix test The test didn't work on platforms where getopt() doesn't support non-option arguments before options. --- src/bin/psql/t/001_basic.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/t/001_basic.pl b/src/bin/psql/t/001_basic.pl index c6d01c0abf..685744744a 100644 --- a/src/bin/psql/t/001_basic.pl +++ b/src/bin/psql/t/001_basic.pl @@ -40,5 +40,5 @@ $node->command_like([ 'psql', '-c', '\help SELECT' ], qr/SELECT/, '\help'); # Test clean handling of unsupported replication command responses -$node->command_fails_like([ 'psql', 'replication=database', '-c', 'START_REPLICATION 0/0' ], +$node->command_fails_like([ 'psql', '-d', 'replication=database', '-c', 'START_REPLICATION 0/0' ], qr/^unexpected PQresultStatus: 8$/, 'handling of unexpected PQresultStatus');