psql: Fix test

The test didn't work on platforms where getopt() doesn't support
non-option arguments before options.
pull/73/head
Peter Eisentraut 4 years ago
parent 67c069848a
commit d9ddc50baf
  1. 2
      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');

Loading…
Cancel
Save