Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4340401

Browse files
committed
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
1 parent 3e4fdb3 commit 4340401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgbench/t/002_pgbench_no_server.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ sub pgbench_scripts
6262
[
6363
'bad option',
6464
'-h home -p 5432 -U calvin -d --bad-option',
65-
[ qr{(unrecognized|illegal) option}, qr{--help.*more information} ]
65+
[qr{--help.*more information}]
6666
],
6767
[
6868
'no file',

0 commit comments

Comments
 (0)