diff options
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 7 | ||||
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.h | 1 |
2 files changed, 7 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()); diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h index 3b4e9c5..a002bcc 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.h +++ b/Source/CTest/cmCTestMultiProcessHandler.h @@ -152,6 +152,7 @@ protected: InsufficientResources, }; + bool Complete(); bool AllocateResources(int index); bool TryAllocateResources( int index, |