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

Commit 251f574

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 c5660e0 commit 251f574

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
@@ -66,7 +66,7 @@ sub pgbench_scripts
6666
[
6767
'bad option',
6868
'-h home -p 5432 -U calvin -d --bad-option',
69-
[ qr{(unrecognized|illegal) option}, qr{--help.*more information} ]
69+
[qr{--help.*more information}]
7070
],
7171
[
7272
'no file',

0 commit comments

Comments
 (0)