diff options
author | John Parent <john.parent@kitware.com> | 2023-10-19 17:26:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 23:41:41 (GMT) |
commit | 419443f68f8d1942cedab04777a5d2e7a0caccd8 (patch) | |
tree | 8ec2071d7b6285e0a1d923d9b5e77c3e5e8bc2e9 /Source/CTest/cmCTestMultiProcessHandler.cxx | |
parent | 8c307ab5670877454572f9e0b3cdc4ae58cefd7b (diff) | |
download | CMake-419443f68f8d1942cedab04777a5d2e7a0caccd8.zip CMake-419443f68f8d1942cedab04777a5d2e7a0caccd8.tar.gz CMake-419443f68f8d1942cedab04777a5d2e7a0caccd8.tar.bz2 |
cmCTestMultiProcessHandler: Factor out helper to check for completion
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index b82e968..d71a34d 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -126,6 +126,11 @@ void cmCTestMultiProcessHandler::SetTestLoad(unsigned long load) } } +bool cmCTestMultiProcessHandler::Complete() +{ + return this->Completed == this->Total; +} + void cmCTestMultiProcessHandler::RunTests() { this->CheckResume(); @@ -143,7 +148,7 @@ void cmCTestMultiProcessHandler::RunTests() uv_loop_close(&this->Loop); if (!this->StopTimePassed && !this->CheckStopOnFailure()) { - assert(this->Completed == this->Total); + assert(this->Complete()); assert(this->Tests.empty()); } assert(this->AllResourcesAvailable()); |