From 3bc73803b4e460410fff71e2c11e0aad116e8763 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 14 Jan 2020 11:03:20 -0500 Subject: 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. --- Tests/CMakeTests/FileDownloadTest.cmake.in | 5 +++++ 1 file changed, 5 insertions(+) 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 "^/") -- cgit v0.12