summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-15 20:10:43 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-08 17:55:01 (GMT)
commit7e0eb77f2f0da764ba9d8a4045351bd7799e101d (patch)
treec0e99dd84b5560d420a42756242e463e01f5c95a /Source/CTest/cmCTestMultiProcessHandler.h
parent61ab5a8ef451484d3014118ed193eeba83bb22a4 (diff)
downloadCMake-7e0eb77f2f0da764ba9d8a4045351bd7799e101d.zip
CMake-7e0eb77f2f0da764ba9d8a4045351bd7799e101d.tar.gz
CMake-7e0eb77f2f0da764ba9d8a4045351bd7799e101d.tar.bz2
cmCTestMultiProcessHandler: Fix StartNextTests loop on not-started test
If `StartTestProcess` does not start a test, propagate this information back up to the `StartNextTests` loop so that it can move on to another candidate without allocating processors to a test that didn't run. Otherwise we have to wait for the next time `RunTests` loops around and calls `StartNextTests` again.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.h')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h
index dccc2c8..77a0ed9 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.h
+++ b/Source/CTest/cmCTestMultiProcessHandler.h
@@ -75,7 +75,7 @@ protected:
// Start the next test or tests as many as are allowed by
// ParallelLevel
void StartNextTests();
- void StartTestProcess(int test);
+ bool StartTestProcess(int test);
bool StartTest(int test);
// Mark the checkpoint for the given test
void WriteCheckpoint(int index);