projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67c0698
)
psql: Fix test
author
Peter Eisentraut
<
[email protected]
>
Tue, 12 Oct 2021 16:22:15 +0000
(18:22 +0200)
committer
Peter Eisentraut
<
[email protected]
>
Tue, 12 Oct 2021 16:22:15 +0000
(18:22 +0200)
The test didn't work on platforms where getopt() doesn't support
non-option arguments before options.
src/bin/psql/t/001_basic.pl
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/t/001_basic.pl
b/src/bin/psql/t/001_basic.pl
index c6d01c0abf061e4f780e1486749a7a3318be58f7..685744744a9767a24f13ab4fdbc120c4c286d474 100644
(file)
--- 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');