diff options
author | Brad King <brad.king@kitware.com> | 2021-02-02 13:46:52 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-02 13:47:01 (GMT) |
commit | b8e3c821fe6a3b3acc48f574e3cfa309f77e3c2b (patch) | |
tree | 8f71022b40d4531ca886a79e594501e89c46120b /Tests | |
parent | 3e76fe735425b248763f4d0559e02f63391fca8f (diff) | |
parent | c0b1f5f30c083e78693784405ff2ca301fb29ecb (diff) | |
download | CMake-b8e3c821fe6a3b3acc48f574e3cfa309f77e3c2b.zip CMake-b8e3c821fe6a3b3acc48f574e3cfa309f77e3c2b.tar.gz CMake-b8e3c821fe6a3b3acc48f574e3cfa309f77e3c2b.tar.bz2 |
Merge topic 'bad-dns-no_proxy'
c0b1f5f30c Tests: Add host to ENV{no_proxy} when DNS lookup failure is expected
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5752
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/FileDownloadTest.cmake.in | 3 | ||||
-rw-r--r-- | Tests/RunCMake/ctest_submit/CTestConfig.cmake.in | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FileDownloadTest.cmake.in b/Tests/CMakeTests/FileDownloadTest.cmake.in index 69d9a14..e0ce99a 100644 --- a/Tests/CMakeTests/FileDownloadTest.cmake.in +++ b/Tests/CMakeTests/FileDownloadTest.cmake.in @@ -136,6 +136,9 @@ __reportIfWrongStatus("${status}" 0) # Print status because we check its message too message(STATUS "${status}") +# 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},badhostname.invalid") message(STATUS "FileDownload:11") file(DOWNLOAD badhostname.invalid diff --git a/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in b/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in index 140e4be..c35397c 100644 --- a/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in +++ b/Tests/RunCMake/ctest_submit/CTestConfig.cmake.in @@ -3,3 +3,7 @@ # 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@") |