test375: verify that --proxy errors out if proxy is disabled in the build

Closes #8565
This commit is contained in:
Daniel Stenberg 2022-03-09 10:39:41 +01:00
parent 95e8515ca0
commit 3e842078f3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 34 additions and 1 deletions

View File

@ -61,7 +61,7 @@ test334 test335 test336 test337 test338 test339 test340 test341 test342 \
test343 test344 test345 test346 test347 test348 test349 test350 test351 \
test352 test353 test354 test355 test356 test357 test358 test359 test360 \
test361 test362 test363 test364 test365 test366 test367 test368 test369 \
test370 test371 test372 test373 test374 \
test370 test371 test372 test373 test374 test375 \
\
test380 test381 test383 test384 test385 test386 \
\

33
tests/data/test375 Normal file
View File

@ -0,0 +1,33 @@
<testcase>
<info>
<keywords>
CURL_DISABLE_PROXY
</keywords>
</info>
<client>
<features>
!proxy
</features>
<server>
none
</server>
<name>
Disabled proxy should make curl fail with --proxy
</name>
<command>
-x wohoo http://example.com/
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stderr>
curl: proxy support is disabled in this libcurl
</stderr>
<errorcode>
4
</errorcode>
</verify>
</testcase>