summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-14 16:03:20 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-15 15:03:34 (GMT)
commit3bc73803b4e460410fff71e2c11e0aad116e8763 (patch)
tree02c6b1f7bc629d47850c0a06e90adb1ff26e84ba /Tests/CMakeTests
parent13525853016e24ddd24b7d21c2b57a15d6924c20 (diff)
downloadCMake-3bc73803b4e460410fff71e2c11e0aad116e8763.zip
CMake-3bc73803b4e460410fff71e2c11e0aad116e8763.tar.gz
CMake-3bc73803b4e460410fff71e2c11e0aad116e8763.tar.bz2
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 4d5145b..f795eb1 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 "^/")