summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/FileTestScript.cmake
diff options
context:
space:
mode:
authorJohnny Jazeix <jazeix@gmail.com>2019-12-23 09:35:41 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-15 15:03:35 (GMT)
commitc0da651c09e11f9868529b7f8c4dc8f97c4546c8 (patch)
tree2c83d48dba0e6bdde0b710b5f89dca4199c4eb7b /Tests/CMakeTests/FileTestScript.cmake
parentb56d429324330a9eb8d3c1860333969140851dd7 (diff)
downloadCMake-c0da651c09e11f9868529b7f8c4dc8f97c4546c8.zip
CMake-c0da651c09e11f9868529b7f8c4dc8f97c4546c8.tar.gz
CMake-c0da651c09e11f9868529b7f8c4dc8f97c4546c8.tar.bz2
file(DOWNLOAD): Don't fail if given just a filename to write to
Fixes: #17969
Diffstat (limited to 'Tests/CMakeTests/FileTestScript.cmake')
-rw-r--r--Tests/CMakeTests/FileTestScript.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeTests/FileTestScript.cmake b/Tests/CMakeTests/FileTestScript.cmake
index 9a43569..145f28a 100644
--- a/Tests/CMakeTests/FileTestScript.cmake
+++ b/Tests/CMakeTests/FileTestScript.cmake
@@ -183,7 +183,7 @@ elseif(testname STREQUAL to_native_path) # pass
elseif(testname STREQUAL download_wrong_number_of_args) # fail
file(DOWNLOAD zzzz://bogus/ffff)
-elseif(testname STREQUAL download_file_with_no_path) # fail
+elseif(testname STREQUAL download_file_with_no_path) # pass
file(DOWNLOAD zzzz://bogus/ffff ffff)
elseif(testname STREQUAL download_missing_time) # fail