[Lldb-commits] [lldb] 2383bc8 - [lldb] Update SocketTestUtilities.cpp to use CloneableECError
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 18 15:54:30 PDT 2024
Author: Adrian Prantl
Date: 2024-09-18T15:54:24-07:00
New Revision: 2383bc8216bd7d373bb48337199c09d40922adf2
URL: https://github.com/llvm/llvm-project/commit/2383bc8216bd7d373bb48337199c09d40922adf2
DIFF: https://github.com/llvm/llvm-project/commit/2383bc8216bd7d373bb48337199c09d40922adf2.diff
LOG: [lldb] Update SocketTestUtilities.cpp to use CloneableECError
Added:
Modified:
lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp b/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
index 86fb5b05ea8009..86aed292ec01f8 100644
--- a/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
+++ b/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
@@ -104,14 +104,13 @@ static bool CheckIPSupport(llvm::StringRef Proto, llvm::StringRef Addr) {
bool HasProtocolError = false;
handleAllErrors(
std::move(Err),
- [&](std::unique_ptr<llvm::ECError> ECErr) {
+ [&](std::unique_ptr<CloneableECError> ECErr) {
std::error_code ec = ECErr->convertToErrorCode();
if (ec ==
std::make_error_code(std::errc::address_family_not_supported) ||
ec == std::make_error_code(std::errc::address_not_available))
HasProtocolError = true;
- },
- [](const llvm::ErrorInfoBase &) {});
+ });
if (HasProtocolError) {
GTEST_LOG_(WARNING)
<< llvm::formatv(
More information about the lldb-commits
mailing list