mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
099f37e9c5
... simply because this is usually a sign of the user having omitted the file name and the next option is instead "eaten" by the parser as a file name. Add test1268 to verify Closes #2885
39 lines
537 B
Plaintext
39 lines
537 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
warning
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<name>
|
|
file name argument looks like a flag
|
|
</name>
|
|
<command>
|
|
--stderr log/moo1268 --unix-socket -k hej://moo
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
<file name="log/moo1268">
|
|
Warning: The file name argument '-k' looks like a flag.
|
|
curl: (1) Protocol "hej" not supported or disabled in libcurl
|
|
</file>
|
|
|
|
# we expect an error since we provide a weird URL
|
|
<errorcode>
|
|
1
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|