summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file-DOWNLOAD/bad-hostname.cmake
blob: d3b7a2840164be8dcf81353205cb48bfa5f88f75 (plain)
1
2
3
4
5
6
7
8
9
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()