aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-10-12 18:22:15 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-10-12 18:22:15 +0200
commitd9ddc50bafc062ec1ae7f98b886b7950102d87fc (patch)
tree2ea7edc088f0fa17dea645d647aa0db1c400c0a7 /src
parent67c069848a998de1436cad2d67baedbf31c3a28c (diff)
downloadpostgresql-d9ddc50bafc062ec1ae7f98b886b7950102d87fc.tar.gz
postgresql-d9ddc50bafc062ec1ae7f98b886b7950102d87fc.zip
psql: Fix test
The test didn't work on platforms where getopt() doesn't support non-option arguments before options.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/t/001_basic.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/t/001_basic.pl b/src/bin/psql/t/001_basic.pl
index c6d01c0abf0..685744744a9 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');