psql: Fix test

The test didn't work on platforms where getopt() doesn't support
non-option arguments before options.
This commit is contained in:
Peter Eisentraut 2021-10-12 18:22:15 +02:00
parent 67c069848a
commit d9ddc50baf
1 changed files with 1 additions and 1 deletions

View File

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