summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-03-03 15:32:03 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-03-03 15:33:09 (GMT)
commit2fd9b8072bb15e16446e15c1165566d4a238e4cc (patch)
treec302a7efb0e2a4df2154f1c591e0ae8a4698286e /Source/CTest
parentadca29a5beca6f25d1224176584ea7c4ef0bf360 (diff)
downloadCMake-2fd9b8072bb15e16446e15c1165566d4a238e4cc.zip
CMake-2fd9b8072bb15e16446e15c1165566d4a238e4cc.tar.gz
CMake-2fd9b8072bb15e16446e15c1165566d4a238e4cc.tar.bz2
Add unit test for RESOURCE_LOCK test property
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 84df303..c1ca9ea 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -119,9 +119,12 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test)
//---------------------------------------------------------
void cmCTestMultiProcessHandler::LockResources(int index)
{
- this->LockedResources.insert(
- this->Properties[index]->LockedResources.begin(),
- this->Properties[index]->LockedResources.end());
+ for(std::set<std::string>::iterator i =
+ this->Properties[index]->LockedResources.begin();
+ i != this->Properties[index]->LockedResources.end(); ++i)
+ {
+ this->LockedResources.insert(*i);
+ }
}
//---------------------------------------------------------