diff options
author | Brad King <brad.king@kitware.com> | 2017-12-15 20:10:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-08 17:55:01 (GMT) |
commit | 7e0eb77f2f0da764ba9d8a4045351bd7799e101d (patch) | |
tree | c0e99dd84b5560d420a42756242e463e01f5c95a /Source/CTest/cmCTestMultiProcessHandler.h | |
parent | 61ab5a8ef451484d3014118ed193eeba83bb22a4 (diff) | |
download | CMake-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.h | 2 |
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); |