[Lldb-commits] [PATCH] D58131: [lldb] [unittest] Avoid mixing '127.0.0.1' and 'localhost'
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 12 10:08:47 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL353868: [lldb] [unittest] Avoid mixing '127.0.0.1' and 'localhost' (authored by mgorny, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D58131?vs=186484&id=186502#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58131/new/
https://reviews.llvm.org/D58131
Files:
lldb/trunk/unittests/Host/SocketTest.cpp
lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
Index: lldb/trunk/unittests/Host/SocketTest.cpp
===================================================================
--- lldb/trunk/unittests/Host/SocketTest.cpp
+++ lldb/trunk/unittests/Host/SocketTest.cpp
@@ -179,7 +179,7 @@
[=](const TCPSocket &s) {
char connect_remote_address[64];
snprintf(connect_remote_address, sizeof(connect_remote_address),
- "localhost:%u", s.GetLocalPortNumber());
+ "127.0.0.1:%u", s.GetLocalPortNumber());
return std::string(connect_remote_address);
},
&socket_a_up, &socket_b_up);
@@ -193,7 +193,7 @@
[=](const TCPSocket &s) {
char connect_remote_address[64];
snprintf(connect_remote_address, sizeof(connect_remote_address),
- "localhost:%u", s.GetLocalPortNumber());
+ "127.0.0.1:%u", s.GetLocalPortNumber());
return std::string(connect_remote_address);
},
&socket_a_up, &socket_b_up);
Index: lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
===================================================================
--- lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
+++ lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
@@ -80,7 +80,7 @@
return status.ToError();
args.AppendArgument(
- ("localhost:" + Twine(listen_socket.GetLocalPortNumber())).str());
+ ("127.0.0.1:" + Twine(listen_socket.GetLocalPortNumber())).str());
for (StringRef arg : ServerArgs)
args.AppendArgument(arg);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58131.186502.patch
Type: text/x-patch
Size: 1532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190212/f1ee89dd/attachment.bin>
More information about the lldb-commits
mailing list