[all-commits] [llvm/llvm-project] 096432: [lldb] Fix the SocketTest failure on unsupported h...

John Harrison via All-commits all-commits at lists.llvm.org
Thu Dec 5 09:08:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0964328c2960159f66ad232bb2257fbabab3c0ec
      https://github.com/llvm/llvm-project/commit/0964328c2960159f66ad232bb2257fbabab3c0ec
  Author: John Harrison <harjohn at google.com>
  Date:   2024-12-05 (Thu, 05 Dec 2024)

  Changed paths:
    M lldb/unittests/Host/SocketTest.cpp
    M lldb/unittests/TestingSupport/Host/SocketTestUtilities.cpp
    M lldb/unittests/TestingSupport/Host/SocketTestUtilities.h

  Log Message:
  -----------
  [lldb] Fix the SocketTest failure on unsupported hosts (#118673)

The test `SocketTest::TCPListen0MultiListenerGetListeningConnectionURI`
is failing on hosts that do not map `localhost` to both an ipv4 and ipv6
address. For example this build
https://lab.llvm.org/buildbot/#/builders/195/builds/1909.

To fix this, I added a helper to validate if the host has an /etc/hosts
entry for both ipv4 and ipv6, otherwise we skip the test.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list