hanchenye-llvm-project/lldb/unittests
Michal Gorny f6e5594e81 [lldb] [unittest] Avoid mixing '127.0.0.1' and 'localhost'
Fix the tests not to use '127.0.0.1' and 'localhost' interchangeably.
More specifically, since tests bind specifically to 127.0.0.1, connect
to that address as well; using 'localhost' can resolve to IPv6 address
which can cause issues -- for example, if the matching port happens to
be used by some other process, the tests hang forever waiting for
the client to connect.

While technically the case of randomly selected IPv4 port being taken
on IPv6 loopback is not very likely, NetBSD happens to be suffering from
some weird kernel issue where connection to that port succeeds
nevertheless.  Until we can really figure out what goes wrong there,
this saves us from the tests hanging randomly.

Differential Revision: https://reviews.llvm.org/D58131

llvm-svn: 353868
2019-02-12 18:09:00 +00:00
..
Breakpoint Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Core Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Disassembler Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Editline Remove redundant ::get() for smart pointer. (NFC) 2019-02-12 03:47:39 +00:00
Expression Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Host [lldb] [unittest] Avoid mixing '127.0.0.1' and 'localhost' 2019-02-12 18:09:00 +00:00
Interpreter Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Language Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ObjectFile BreakpadRecords: Add parsing code for FILE and LINE records 2019-01-29 15:39:27 +00:00
Platform Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Process Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScriptInterpreter Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Signals Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Symbol Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SymbolFile [NFC] Fix license headers after r352845 2019-02-08 08:48:15 +00:00
Target Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TestingSupport Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UnwindAssembly Use std::make_shared in LLDB (NFC) 2019-02-11 23:13:08 +00:00
Utility Have Stream::PutCStringAsRawHex8 take llvm::StringRef 2019-02-12 14:28:55 +00:00
debugserver Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
tools [lldb] [unittest] Avoid mixing '127.0.0.1' and 'localhost' 2019-02-12 18:09:00 +00:00
CMakeLists.txt [CMake] Only test debugserver if platform can use debugserver 2019-01-18 00:05:25 +00:00
gtest_common.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00