diff options
author | Brad King <brad.king@kitware.com> | 2023-11-01 20:48:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 23:41:41 (GMT) |
commit | 451429e19c235cb2200be1c7aba3f6b29f389857 (patch) | |
tree | 196c058a198f4ae4277ba1ea75d99b6fb38264bf /Source/CTest/cmCTestMultiProcessHandler.cxx | |
parent | 419443f68f8d1942cedab04777a5d2e7a0caccd8 (diff) | |
download | CMake-451429e19c235cb2200be1c7aba3f6b29f389857.zip CMake-451429e19c235cb2200be1c7aba3f6b29f389857.tar.gz CMake-451429e19c235cb2200be1c7aba3f6b29f389857.tar.bz2 |
cmCTestMultiProcessHandler: Use cm::uv_loop_ptr abstraction
This ensures all loop resources are released.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index d71a34d..c4e3759 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -142,10 +142,10 @@ void cmCTestMultiProcessHandler::RunTests() #endif this->TestHandler->SetMaxIndex(this->FindMaxIndex()); - uv_loop_init(&this->Loop); + this->Loop.init(); this->StartNextTests(); - uv_run(&this->Loop, UV_RUN_DEFAULT); - uv_loop_close(&this->Loop); + uv_run(this->Loop, UV_RUN_DEFAULT); + this->Loop.reset(); if (!this->StopTimePassed && !this->CheckStopOnFailure()) { assert(this->Complete()); @@ -618,7 +618,7 @@ void cmCTestMultiProcessHandler::StartNextTests() milliseconds = 10; } if (this->TestLoadRetryTimer.get() == nullptr) { - this->TestLoadRetryTimer.init(this->Loop, this); + this->TestLoadRetryTimer.init(*this->Loop, this); } this->TestLoadRetryTimer.start( &cmCTestMultiProcessHandler::OnTestLoadRetryCB, milliseconds, 0); |