Skip to content

Commit 9c6d51d

Browse files
adrian-prantltmsri
authored andcommitted
[lldb] Add handling of ECError to unit test to validate a hypothesis on the bots
1 parent 74f41e9 commit 9c6d51d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ static bool CheckIPSupport(llvm::StringRef Proto, llvm::StringRef Addr) {
110110
std::make_error_code(std::errc::address_family_not_supported) ||
111111
ec == std::make_error_code(std::errc::address_not_available))
112112
HasProtocolError = true;
113+
},
114+
[&](std::unique_ptr<llvm::ECError> ECErr) {
115+
// FIXME: This code path should not be reachable.
116+
std::error_code ec = ECErr->convertToErrorCode();
117+
if (ec ==
118+
std::make_error_code(std::errc::address_family_not_supported) ||
119+
ec == std::make_error_code(std::errc::address_not_available))
120+
HasProtocolError = true;
113121
});
114122
if (HasProtocolError) {
115123
GTEST_LOG_(WARNING)

0 commit comments

Comments
 (0)