aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-04-27 17:15:36 +0200
committerPavel Labath <pavel@labath.sk>2020-04-27 17:33:20 +0200
commit18e96a31fe0214eb435e131e6ff585a899694576 (patch)
tree8f997d2df71a4ef701bf992e3d2f47b35aad63d9 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentf5b1301ce8575f6d82e87031a1a5485c33637a93 (diff)
downloadllvm-18e96a31fe0214eb435e131e6ff585a899694576.zip
llvm-18e96a31fe0214eb435e131e6ff585a899694576.tar.gz
llvm-18e96a31fe0214eb435e131e6ff585a899694576.tar.bz2
[lldb/unittests] Skip IPv6 test on systems which don't have IPv6 configured
Sadly IPv6 is still not present anywhere. The test was attempting to detect&skip such hosts, but the way it did that (essentially, by calling getaddrinfo) meant that it only detected hosts which have IPv6 support completely compiled out. It did not do anything about hosts which have it compiled in, but lack runtime configuration even for the ::1 loopback address. This patch changes the detection logic to use a new method. It does it by attempting to bind a socket to the appropriate loopback address. That should ensure the hosts loopback interface is fully set up. In an effort to avoid silently skipping the test on too many hosts, the test is fairly strict about the kind of error it expects in these cases -- it will only skip the test when receiving EADDRNOTAVAIL. If we find other error codes that can be reasonably returned in these situations, we can add more of them. The (small) change in TCPSocket.cpp is to ensure that the code correctly propagates the error received from the OS.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions