Merge branch 'fix-ctest-parallel'
This commit is contained in:
commit
5890f562e3
|
@ -92,6 +92,7 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test)
|
||||||
this->TestRunningMap[test] = true; // mark the test as running
|
this->TestRunningMap[test] = true; // mark the test as running
|
||||||
// now remove the test itself
|
// now remove the test itself
|
||||||
this->EraseTest(test);
|
this->EraseTest(test);
|
||||||
|
this->RunningCount += GetProcessorsUsed(test);
|
||||||
|
|
||||||
cmCTestRunTest* testRun = new cmCTestRunTest(this->TestHandler);
|
cmCTestRunTest* testRun = new cmCTestRunTest(this->TestHandler);
|
||||||
testRun->SetIndex(test);
|
testRun->SetIndex(test);
|
||||||
|
@ -267,7 +268,6 @@ void cmCTestMultiProcessHandler::StartNextTests()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
numToStart -= processors;
|
numToStart -= processors;
|
||||||
this->RunningCount += processors;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,3 +11,5 @@ SET_TESTS_PROPERTIES(TestRunSerial1 TestRunSerial2 PROPERTIES RUN_SERIAL true)
|
||||||
ADD_TEST (TestProcessorsGreaterThanMPL1 LockFile)
|
ADD_TEST (TestProcessorsGreaterThanMPL1 LockFile)
|
||||||
ADD_TEST (TestProcessorsGreaterThanMPL2 LockFile)
|
ADD_TEST (TestProcessorsGreaterThanMPL2 LockFile)
|
||||||
SET_TESTS_PROPERTIES(TestProcessorsGreaterThanMPL1 PROPERTIES PROCESSORS 10)
|
SET_TESTS_PROPERTIES(TestProcessorsGreaterThanMPL1 PROPERTIES PROCESSORS 10)
|
||||||
|
SET_TESTS_PROPERTIES(TestProcessorsGreaterThanMPL1 PROPERTIES DEPENDS
|
||||||
|
TestProcessorsGreaterThanMPL2)
|
||||||
|
|
Loading…
Reference in New Issue