diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-01-17 19:31:03 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-01-17 19:31:28 -0500 |
commit | 43404015955804dd6ff10563f4f78f5f352dbe25 (patch) | |
tree | f904a3fddf2a5526345029edff6d12022c1aae5d | |
parent | 3e4fdb3bc0dc3314a0396bc7067afb40e0df186e (diff) | |
download | postgresql-43404015955804dd6ff10563f4f78f5f352dbe25.tar.gz postgresql-43404015955804dd6ff10563f4f78f5f352dbe25.zip |
Avoid assuming that we know the spelling of getopt_long's error messages.
I've had enough of "fixing" this test case. Whatever value it has
is limited to verifying that pgbench fails for an unrecognized switch,
and we don't need to assume anything about what getopt_long prints in
order to do that.
Discussion: https://postgr.es/m/9427.1547701450@sss.pgh.pa.us
-rw-r--r-- | src/bin/pgbench/t/002_pgbench_no_server.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index e82d3cb2429..e87c028659d 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/src/bin/pgbench/t/002_pgbench_no_server.pl @@ -62,7 +62,7 @@ my @options = ( [ 'bad option', '-h home -p 5432 -U calvin -d --bad-option', - [ qr{(unrecognized|illegal) option}, qr{--help.*more information} ] + [qr{--help.*more information}] ], [ 'no file', |