Skip to content

Commit ffd3980

Browse files
committed
pg_dump new test: Change order of arguments
Some getopt_long implementations don't like to have a non-option argument before option arguments, so put the database name as the last switch. Per buildfarm member hoverfly.
1 parent 2f9eb31 commit ffd3980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/t/003_pg_dump_with_server.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
my ($cmd, $stdout, $stderr, $result);
2828

2929
command_fails_like(
30-
[ "pg_dump", '-p', $port, 'postgres', '--include-foreign-data=s0' ],
30+
[ "pg_dump", '-p', $port, '--include-foreign-data=s0', 'postgres' ],
3131
qr/foreign-data wrapper \"dummy\" has no handler\r?\npg_dump: error: query was:.*t0/,
3232
"correctly fails to dump a foreign table from a dummy FDW");
3333

3434
command_ok(
35-
[ "pg_dump", '-p', $port, 'postgres', '-a', '--include-foreign-data=s2' ] ,
35+
[ "pg_dump", '-p', $port, '-a', '--include-foreign-data=s2', 'postgres' ] ,
3636
"dump foreign server with no tables");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy