mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
c0b1f5f30c
DNS lookup of an invalid host name fails with a different error in a proxy environment than it does in an environment without proxy. Many tools, including curl, use the `no_proxy` environment variable to provid a list of hosts for which proxy should not be used. To make lookup failure consistent, add invalid host names to the `no_proxy` environment variable in tests that attempt to look up invalid host names. This way the lookup will fail consistently regardless of whether proxy is generally used or not. Signed-off-by: william.r.dieter <william.r.dieter@intel.com>
10 lines
392 B
CMake
10 lines
392 B
CMake
|
|
# Intentionally leave out other upload-related CTestConfig.cmake settings
|
|
# so that any ctest_submit calls fail with an error message.
|
|
set(CTEST_DROP_METHOD "@CASE_DROP_METHOD@")
|
|
set(CTEST_DROP_SITE "@CASE_DROP_SITE@")
|
|
|
|
# do not use proxy for lookup of invalid site (DNS failure by proxy looks
|
|
# different than DNS failure without proxy)
|
|
set(ENV{no_proxy} "$ENV{no_proxy},@CASE_DROP_SITE@")
|