Skip to content

Commit 97b6f2e

Browse files
committed
Remove tests for pg_dumpall --exclude-database missing argument
It turns out that different getopt implementations spell the error for missing arguments different ways. This test is of fairly marginal value, so instead of trying to keep up with the different error messages just remove the test.
1 parent ad0bda5 commit 97b6f2e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bin/pg_dump/t/001_basic.pl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Config;
55
use PostgresNode;
66
use TestLib;
7-
use Test::More tests => 74;
7+
use Test::More tests => 72;
88

99
my $tempdir = TestLib::tempdir;
1010
my $tempdir_short = TestLib::tempdir_short;
@@ -151,11 +151,6 @@
151151
'pg_restore: options -C\/--create and -1\/--single-transaction cannot be used together'
152152
);
153153

154-
command_fails_like(
155-
[ 'pg_dumpall', '--exclude-database' ],
156-
qr/\Qpg_dumpall: option '--exclude-database' requires an argument\E/,
157-
'pg_dumpall: option --exclude-database requires an argument');
158-
159154
# also fails for -r and -t, but it seems pointless to add more tests for those.
160155
command_fails_like(
161156
[ 'pg_dumpall', '--exclude-database=foo', '--globals-only' ],

0 commit comments

Comments
 (0)