From 3e842078f334252ac8901980c870c74529caf882 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Mar 2022 10:39:41 +0100 Subject: [PATCH] test375: verify that --proxy errors out if proxy is disabled in the build Closes #8565 --- tests/data/Makefile.inc | 2 +- tests/data/test375 | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/data/test375 diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 59d46bc40b..80901c7719 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -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 index 0000000000..f3a80d8737 --- /dev/null +++ b/tests/data/test375 @@ -0,0 +1,33 @@ + + + +CURL_DISABLE_PROXY + + + + + +!proxy + + +none + + +Disabled proxy should make curl fail with --proxy + + +-x wohoo http://example.com/ + + + +# +# Verify data after the test has been "shot" + + +curl: proxy support is disabled in this libcurl + + +4 + + +