Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tool_getparam: handle non-existing (out of range) short-options
... correctly, even when they follow an existing one without a space in between. Verify with test 467 Follow-up to 07dd60c Reported-by: Geeknik Labs Fixes #13101 Closes #131..
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
cmdline | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
none | ||
</server> | ||
<name> | ||
use a bad short option letter that does not exist (after one does exist) | ||
</name> | ||
|
||
# the second option is outside the normal accepted range | ||
<command> | ||
curl -v http://example.com | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify errorcode | ||
<verify> | ||
<errorcode> | ||
2 | ||
</errorcode> | ||
</verify> | ||
</testcase> |