Author: Adrian Prantl Date: 2024-09-18T16:39:22-07:00 New Revision: c86b1b0f44509585390c8df09b41d707e6a14011
URL: https://github.com/llvm/llvm-project/commit/c86b1b0f44509585390c8df09b41d707e6a14011 DIFF: https://github.com/llvm/llvm-project/commit/c86b1b0f44509585390c8df09b41d707e6a14011.diff LOG: [lldb] Add handling of ECError to unit test to validate a hypothesis on the bots 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 86aed292ec01f8..9777555d57ffff 100644 --- a/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp +++ b/lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp @@ -110,6 +110,14 @@ static bool CheckIPSupport(llvm::StringRef Proto, llvm::StringRef Addr) { std::make_error_code(std::errc::address_family_not_supported) || ec == std::make_error_code(std::errc::address_not_available)) HasProtocolError = true; + }, + [&](std::unique_ptr<llvm::ECError> ECErr) { + // FIXME: This code path should not be reachable. + 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; }); if (HasProtocolError) { GTEST_LOG_(WARNING) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits