diff options
author | Brad King <brad.king@kitware.com> | 2020-01-21 14:37:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-21 14:37:45 (GMT) |
commit | 65a3c6825996b2fc31cba8cd53ce080178e76e8b (patch) | |
tree | 9c4fa04e060a5cf5879f643c5b8af88cdfefe9e9 /Tests/CMakeTests | |
parent | 7a89e3c36cf919bf7c608456bcfd5d12978dc037 (diff) | |
download | CMake-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/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/FileDownloadTest.cmake.in | 4 |
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}") |