summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-20 15:11:39 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-21 21:34:42 (GMT)
commitef97cd8587e7f8d4017b18147aaaca0ec5cb9f0c (patch)
tree688d6a22b511c1431ce676e14489909926e5808b /Tests
parent76f7eb2e4a359a7c978efa19fdf71fe1ea46b971 (diff)
downloadCMake-ef97cd8587e7f8d4017b18147aaaca0ec5cb9f0c.zip
CMake-ef97cd8587e7f8d4017b18147aaaca0ec5cb9f0c.tar.gz
CMake-ef97cd8587e7f8d4017b18147aaaca0ec5cb9f0c.tar.bz2
Tests: Fix obscure RunCMake.CTestSubmit 'drop' case failures
When curl is given a URL of the form '<something>://' it tries to resolve '<something>' as a host name. If the host happens to exist and have a server then the drop might actually appear to work. Instead use an explicit '-no-site-' host to ensure it cannot connect. Reported-by: Gilles Khouzam <Gilles.Khouzam@microsoft.com>
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in1
-rw-r--r--Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in b/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in
index f0e1653..378a85a 100644
--- a/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in
+++ b/Tests/RunCMake/CTestSubmit/CTestConfig.cmake.in
@@ -3,3 +3,4 @@ set(CTEST_PROJECT_NAME "CTestSubmit@CASE_NAME@")
# Intentionally leave out other upload-related CTestConfig.cmake settings
# so that any ctest_submit calls fail with an error message.
set(CTEST_DROP_METHOD "@CASE_DROP_METHOD@")
+set(CTEST_DROP_SITE "@CASE_DROP_SITE@")
diff --git a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake
index 7cab3f3..3638007 100644
--- a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake
@@ -2,6 +2,7 @@ include(RunCMake)
# Default case parameters.
set(CASE_DROP_METHOD "http")
+set(CASE_DROP_SITE "-no-site-")
set(CASE_CTEST_SUBMIT_ARGS "")
function(run_ctest CASE_NAME)