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);