summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-21 14:37:45 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-21 14:37:45 (GMT)
commit65a3c6825996b2fc31cba8cd53ce080178e76e8b (patch)
tree9c4fa04e060a5cf5879f643c5b8af88cdfefe9e9 /Tests
parent7a89e3c36cf919bf7c608456bcfd5d12978dc037 (diff)
downloadCMake-65a3c6825996b2fc31cba8cd53ce080178e76e8b.zip
CMake-65a3c6825996b2fc31cba8cd53ce080178e76e8b.tar.gz
CMake-65a3c6825996b2fc31cba8cd53ce080178e76e8b.tar.bz2
Tests: Make CMake.FileDownload invalid host name case more robust
Use a well-defined `.invalid` top-level domain instead of assuming there is no `.png` top-level domain. Extend the timeout of this one case to 30 seconds to give DNS lookups a chance to fail instead of timing out.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeTests/FileDownloadTest.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeTests/FileDownloadTest.cmake.in b/Tests/CMakeTests/FileDownloadTest.cmake.in
index 5bd3803..76c0000 100644
--- a/Tests/CMakeTests/FileDownloadTest.cmake.in
+++ b/Tests/CMakeTests/FileDownloadTest.cmake.in
@@ -138,9 +138,9 @@ message(STATUS "${status}")
message(STATUS "FileDownload:11")
file(DOWNLOAD
- badhostname.png
+ badhostname.invalid
${dir}/file11.png
- TIMEOUT ${timeout}
+ TIMEOUT 30
STATUS status
)
message(STATUS "${status}")