postgres.git / summary / log / commit / refs

commit    d9ddc50bafc062ec1ae7f98b886b7950102d87fc
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Tue Oct 12 16:22:15 2021 +0000
First released in: 15.0

    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 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'); [parent: 67c069848a99]