]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test375: verify that --proxy errors out if proxy is disabled in the build
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Mar 2022 09:39:41 +0000 (10:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Mar 2022 07:31:07 +0000 (08:31 +0100)
Closes #8565

tests/data/Makefile.inc
tests/data/test375 [new file with mode: 0644]

index 59d46bc40bd0561d2460813475634909361e514f..80901c7719f19f77d5c40ce97b6c340ccfe4a3ea 100644 (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 \
 \
diff --git a/tests/data/test375 b/tests/data/test375
new file mode 100644 (file)
index 0000000..f3a80d8
--- /dev/null
@@ -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>