summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-08-27 14:37:30 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-08-27 14:37:30 (GMT)
commit177edc5ed1bed7306a122129dfcaf13d898f83ef (patch)
tree43db43d2af66aec0f021ad5e8e7d9067d46088ce /Source/cmCTest.cxx
parentfdc0d9777cf548b44d8cfa43502efb26a6247e9b (diff)
downloadCMake-177edc5ed1bed7306a122129dfcaf13d898f83ef.zip
CMake-177edc5ed1bed7306a122129dfcaf13d898f83ef.tar.gz
CMake-177edc5ed1bed7306a122129dfcaf13d898f83ef.tar.bz2
Fixed ctest -N segfault issue. Further refactored ctest. Enabled failover for ctest
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx31
1 files changed, 7 insertions, 24 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 7590772..f1ad1a7 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -208,9 +208,9 @@ std::string cmCTest::DecodeURL(const std::string& in)
//----------------------------------------------------------------------
cmCTest::cmCTest()
{
- this->ParallelSubprocess = false;
this->ParallelLevel = 1;
this->SubmitIndex = 0;
+ this->Failover = false;
this->ForceNewCTestProcess = false;
this->TomorrowTag = false;
this->Verbose = false;
@@ -795,11 +795,7 @@ int cmCTest::ProcessTests()
bool notest = true;
int update_count = 0;
- // do not output startup if this is a sub-process for parallel tests
- if(!this->GetParallelSubprocess())
- {
- cmCTestLog(this, OUTPUT, "Start processing tests" << std::endl);
- }
+ cmCTestLog(this, OUTPUT, "Start processing tests" << std::endl);
for(Part p = PartStart; notest && p != PartCount; p = Part(p+1))
{
@@ -908,11 +904,8 @@ int cmCTest::ProcessTests()
}
if ( res != 0 )
{
- if(!this->GetParallelSubprocess())
- {
- cmCTestLog(this, ERROR_MESSAGE, "Errors while running CTest"
+ cmCTestLog(this, ERROR_MESSAGE, "Errors while running CTest"
<< std::endl);
- }
}
return res;
}
@@ -1707,6 +1700,10 @@ void cmCTest::HandleCommandLineArguments(size_t &i,
{
std::string arg = args[i];
+ if(this->CheckArgument(arg, "-F"))
+ {
+ this->Failover = true;
+ }
if(this->CheckArgument(arg, "-j", "--parallel") && i < args.size() - 1)
{
i++;
@@ -1718,20 +1715,6 @@ void cmCTest::HandleCommandLineArguments(size_t &i,
int plevel = atoi(arg.substr(2).c_str());
this->SetParallelLevel(plevel);
}
- if(this->CheckArgument(arg, "--internal-ctest-parallel")
- && i < args.size() - 1)
- {
- i++;
- int pid = atoi(args[i].c_str());
- this->SetParallelSubprocessId(pid);
- this->SetParallelSubprocess();
- }
-
- if(this->CheckArgument(arg, "--parallel-cache") && i < args.size() - 1)
- {
- i++;
- this->SetParallelCacheFile(args[i].c_str());
- }
if(this->CheckArgument(arg, "-C", "--build-config") &&
i < args.size() - 1)