summaryrefslogtreecommitdiff
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-14 11:03:20 -0500
committerBrad King <brad.king@kitware.com>2020-01-15 10:03:34 -0500
commit3bc73803b4e460410fff71e2c11e0aad116e8763 (patch)
tree02c6b1f7bc629d47850c0a06e90adb1ff26e84ba /Tests/CMakeTests
parent13525853016e24ddd24b7d21c2b57a15d6924c20 (diff)
downloadcmake-3bc73803b4e460410fff71e2c11e0aad116e8763.tar.gz
Tests: Fix CMake.FileDownload test in presence of proxy
We do not actually need to contact any real http servers. The one attempt we make is to an intentionally bad domain name. Unset any proxy configuration that may change behavior.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/FileDownloadTest.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FileDownloadTest.cmake.in b/Tests/CMakeTests/FileDownloadTest.cmake.in
index 4d5145badb..f795eb1935 100644
--- a/Tests/CMakeTests/FileDownloadTest.cmake.in
+++ b/Tests/CMakeTests/FileDownloadTest.cmake.in
@@ -1,3 +1,8 @@
+# We do not contact any real URLs, but do try a bogus one.
+# Remove any proxy configuration that may change behavior.
+unset(ENV{http_proxy})
+unset(ENV{https_proxy})
+
set(timeout 4)
if(NOT "@CMAKE_CURRENT_SOURCE_DIR@" MATCHES "^/")