[Lldb-commits] [lldb] 02c2b47 - [lldb] Remove ConnectionFileDescriptorTest.Connectv(4|6)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 28 15:40:36 PDT 2022


Author: Jonas Devlieghere
Date: 2022-04-28T15:40:21-07:00
New Revision: 02c2b472b510ff55679844c087b66e7837e13dc2

URL: https://github.com/llvm/llvm-project/commit/02c2b472b510ff55679844c087b66e7837e13dc2
DIFF: https://github.com/llvm/llvm-project/commit/02c2b472b510ff55679844c087b66e7837e13dc2.diff

LOG: [lldb] Remove ConnectionFileDescriptorTest.Connectv(4|6)

These tests are timing out on the bots.

Added: 
    

Modified: 
    lldb/unittests/Host/ConnectionFileDescriptorTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/Host/ConnectionFileDescriptorTest.cpp b/lldb/unittests/Host/ConnectionFileDescriptorTest.cpp
index 49ff73e410ab..eb4b824c6c14 100644
--- a/lldb/unittests/Host/ConnectionFileDescriptorTest.cpp
+++ b/lldb/unittests/Host/ConnectionFileDescriptorTest.cpp
@@ -30,15 +30,6 @@ class ConnectionFileDescriptorTest : public testing::Test {
     EXPECT_EQ((URI{"connect", ip, socket->GetRemotePortNumber(), "/"}),
               URI::Parse(uri).getValue());
   }
-
-  void TestConnect(std::string ip, std::string path) {
-    std::unique_ptr<TCPSocket> socket_a_up;
-    std::unique_ptr<TCPSocket> socket_b_up;
-    CreateTCPConnectedSockets(ip, &socket_a_up, &socket_b_up);
-    auto *socket = socket_a_up.release();
-    ConnectionFileDescriptor connection_file_descriptor(socket);
-    connection_file_descriptor.Connect(path, nullptr);
-  }
 };
 
 TEST_F(ConnectionFileDescriptorTest, TCPGetURIv4) {
@@ -52,15 +43,3 @@ TEST_F(ConnectionFileDescriptorTest, TCPGetURIv6) {
     return;
   TestGetURI("::1");
 }
-
-TEST_F(ConnectionFileDescriptorTest, Connectv4) {
-  if (!HostSupportsIPv4())
-    return;
-  TestConnect("127.0.0.1", "accept://127.0.0.1");
-}
-
-TEST_F(ConnectionFileDescriptorTest, Connectv6) {
-  if (!HostSupportsIPv6())
-    return;
-  TestConnect("::1", "accept://::1");
-}


        


More information about the lldb-commits mailing list