From d0d1cdd71bb85b821be9b65be94819f3575b49ad Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 10 Jun 2010 15:02:24 -0400 Subject: Mock checksum failure output for old CDash versions --- Source/CTest/cmCTestSubmitHandler.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 = "\n" + " ERROR\n" + " Checksum failed for file.\n" + "\n"; + chunk.clear(); + chunk.assign(mock_output.begin(), mock_output.end()); + } + if ( chunk.size() > 0 ) { cmCTestLog(this->CTest, DEBUG, "CURL output: [" -- cgit v0.12