Files
CMake/Tests/RunCMake/file-DOWNLOAD/bad-hostname.cmake
Brad King 52b9c7b958 Tests: Move CMake.FileDownload cases into RunCMake.file-DOWNLOAD
The RunCMake infrastructure is more well-suited to check the results of
each case.  It can also report more precisely what went wrong when a
case fails.
2022-11-18 09:02:15 -05:00

10 lines
253 B
CMake

include(common.cmake)
# Do not use any proxy for lookup of an invalid site.
# DNS failure by proxy looks different than DNS failure without proxy.
set(ENV{no_proxy} "$ENV{no_proxy},badhostname.invalid")
set(url "badhostname.invalid")
file_download()