summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.cxx
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2023-10-19 17:26:16 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-17 23:41:41 (GMT)
commit419443f68f8d1942cedab04777a5d2e7a0caccd8 (patch)
tree8ec2071d7b6285e0a1d923d9b5e77c3e5e8bc2e9 /Source/CTest/cmCTestMultiProcessHandler.cxx
parent8c307ab5670877454572f9e0b3cdc4ae58cefd7b (diff)
downloadCMake-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.cxx7
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());