Browse Source

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.
Brad King 5 years ago
parent
commit
3bc73803b4
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Tests/CMakeTests/FileDownloadTest.cmake.in

+ 5 - 0
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 "^/")