summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-03-02 20:34:37 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-03-02 20:38:02 (GMT)
commit767ffba8ff37ccb510707b768086cb189970d8c6 (patch)
tree64f088977d94731b9a2a34416d806f4dcd38cfae /Source/CTest/cmCTestTestHandler.cxx
parent634c3113ed53cd05230e7c6418e6f9c5b5e630b2 (diff)
downloadCMake-767ffba8ff37ccb510707b768086cb189970d8c6.zip
CMake-767ffba8ff37ccb510707b768086cb189970d8c6.tar.gz
CMake-767ffba8ff37ccb510707b768086cb189970d8c6.tar.bz2
Added RESOURCE_LOCK test property.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index e36074f..b9cee6c 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -2099,6 +2099,17 @@ bool cmCTestTestHandler::SetTestsProperties(
rtit->AttachOnFail.push_back(*f);
}
}
+ if ( key == "RESOURCE_LOCK" )
+ {
+ std::vector<std::string> lval;
+ cmSystemTools::ExpandListArgument(val.c_str(), lval);
+
+ for(std::vector<std::string>::iterator f = lval.begin();
+ f != lval.end(); ++f)
+ {
+ rtit->LockedResources.insert(*f);
+ }
+ }
if ( key == "TIMEOUT" )
{
rtit->Timeout = atof(val.c_str());