mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
test1179: verify error message for non-existing cmdline option
This commit is contained in:
parent
ada7bd1191
commit
c888e3f6ce
@ -139,7 +139,7 @@ test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \
|
|||||||
test1168 \
|
test1168 \
|
||||||
\
|
\
|
||||||
test1170 test1171 test1172 test1173 test1174 test1175 test1176 test1177 \
|
test1170 test1171 test1172 test1173 test1174 test1175 test1176 test1177 \
|
||||||
test1178 \
|
test1178 test1179 \
|
||||||
\
|
\
|
||||||
test1190 test1191 test1192 test1193 test1194 test1195 test1196 \
|
test1190 test1191 test1192 test1193 test1194 test1195 test1196 \
|
||||||
\
|
\
|
||||||
|
43
tests/data/test1179
Normal file
43
tests/data/test1179
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
cmdline
|
||||||
|
wrong option
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
none
|
||||||
|
</server>
|
||||||
|
# make this test require manual as the error message is different without it
|
||||||
|
<features>
|
||||||
|
manual
|
||||||
|
</features>
|
||||||
|
<name>
|
||||||
|
error when using unknown command line option
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
--never-implemented http://never.use.this.example.com/1179
|
||||||
|
</command>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<errorcode>
|
||||||
|
2
|
||||||
|
</errorcode>
|
||||||
|
<stderr mode="text">
|
||||||
|
curl: option --never-implemented: is unknown
|
||||||
|
curl: try 'curl --help' or 'curl --manual' for more information
|
||||||
|
</stderr>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
Loading…
Reference in New Issue
Block a user