summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-06-10 19:02:24 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-06-10 19:02:24 (GMT)
commitd0d1cdd71bb85b821be9b65be94819f3575b49ad (patch)
treeb18f3162d2b157ea90f62d64db50be06a976b084
parentaf5ef0c96982be431791ea35d6de8798ffe70254 (diff)
downloadCMake-d0d1cdd71bb85b821be9b65be94819f3575b49ad.zip
CMake-d0d1cdd71bb85b821be9b65be94819f3575b49ad.tar.gz
CMake-d0d1cdd71bb85b821be9b65be94819f3575b49ad.tar.bz2
Mock checksum failure output for old CDash versions
-rw-r--r--Source/CTest/cmCTestSubmitHandler.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx
index 4ca382c..bfe515d 100644
--- a/Source/CTest/cmCTestSubmitHandler.cxx
+++ b/Source/CTest/cmCTestSubmitHandler.cxx
@@ -509,6 +509,19 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
// Now run off and do what you've been told!
res = ::curl_easy_perform(curl);
+ if(cmSystemTools::IsOn(this->GetOption("InternalTest")) &&
+ cmSystemTools::VersionCompare(cmSystemTools::OP_LESS,
+ this->CTest->GetCDashVersion().c_str(), "1.7"))
+ {
+ // mock failure output for internal test case
+ std::string mock_output = "<cdash version=\"1.7.0\">\n"
+ " <status>ERROR</status>\n"
+ " <message>Checksum failed for file.</message>\n"
+ "</cdash>\n";
+ chunk.clear();
+ chunk.assign(mock_output.begin(), mock_output.end());
+ }
+
if ( chunk.size() > 0 )
{
cmCTestLog(this->CTest, DEBUG, "CURL output: ["