mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
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.
This commit is contained in:
1 parent
7a89e3c36c
commit
65a3c68259
1 file changed
+2
-2
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user