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.
This commit is contained in:
Brad King
2020-01-14 11:03:20 -05:00
parent 1352585301
commit 3bc73803b4

View File

@@ -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 "^/")