[lldb] Make CommunicationTest compatible with windows
authorPavel Labath <pavel@labath.sk>
Wed, 24 Aug 2022 13:59:46 +0000 (15:59 +0200)
committerPavel Labath <pavel@labath.sk>
Fri, 26 Aug 2022 13:25:46 +0000 (15:25 +0200)
commit59656c0492224a2da590b913959630107e0a31f4
treea504178be530e556072a33fe00ef0dc233d8ba97
parent41667a8b9b624e282e7c08fadf7091223728d1c1
[lldb] Make CommunicationTest compatible with windows

Our (TCP) socket support is in a much better state than pipes. Use that
for testing the Communication class.

Move the CreateTCPConnectedSockets function
(SocketTestUtilities.{h,cpp}) to a place where it can be used from
Communication tests.
lldb/unittests/Core/CMakeLists.txt
lldb/unittests/Core/CommunicationTest.cpp
lldb/unittests/Core/FormatEntityTest.cpp
lldb/unittests/Host/CMakeLists.txt
lldb/unittests/Host/ConnectionFileDescriptorTest.cpp
lldb/unittests/Host/SocketTest.cpp
lldb/unittests/TestingSupport/CMakeLists.txt
lldb/unittests/TestingSupport/Host/CMakeLists.txt [new file with mode: 0644]
lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp [moved from lldb/unittests/Host/SocketTestUtilities.cpp with 98% similarity]
lldb/unittests/TestingSupport/Host/SocketTestUtilities.h [moved from lldb/unittests/Host/SocketTestUtilities.h with 92% similarity]