summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-18 22:13:07 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-11-18 22:13:07 (GMT)
commit92af1dad0652951e8f7adc1a4a59527bd98435fa (patch)
tree60cb795c73406db2bd85086ab41a6ebc014a74fb /Source/cmCTest.h
parent8e1bbee4d948025dfb1888e0a8b0365d7bd360c8 (diff)
downloadCMake-92af1dad0652951e8f7adc1a4a59527bd98435fa.zip
CMake-92af1dad0652951e8f7adc1a4a59527bd98435fa.tar.gz
CMake-92af1dad0652951e8f7adc1a4a59527bd98435fa.tar.bz2
CTest: Disallow problem chars in build and site names (#11792)
Also, use "(empty)" rather than actually sending an empty string if build or site name is not set properly.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 44a5349..7c71b00 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -259,6 +259,10 @@ public:
std::string* stdOut, std::string* stdErr,
int* retVal = 0, const char* dir = 0, double timeout = 0.0);
+ //! Clean/make safe for xml the given value such that it may be used as
+ // one of the key fields by CDash when computing the buildid.
+ static std::string SafeBuildIdField(const std::string& value);
+
//! Start CTest XML output file
void StartXML(std::ostream& ostr, bool append);