From f877a0820c247bd2634883c2d957e239d267713b Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 23 Oct 2017 23:15:37 +0000 Subject: Use ipv4 localhost address in lldb-server tests Since the ipv6 patch, we've experienced occasional flakyness in lldb-server tests. This was due to the fact that lldb-server was trying to listen on both v4 and v6 localhost sockets (and consider it a success if at least one of them succeeded), while the test framework was only trying to connect to the v4 one. This change makes sure lldb-server only listens on the v4 socket. llvm-svn: 316391 --- .../Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python') diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py index 23cb8693585..67887256d97 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py @@ -369,7 +369,7 @@ class GdbRemoteTestCaseBase(TestBase): ["*:{}".format(self.port)] else: commandline_args = self.debug_monitor_extra_args + \ - ["localhost:{}".format(self.port)] + ["127.0.0.1:{}".format(self.port)] if attach_pid: commandline_args += ["--attach=%d" % attach_pid] -- cgit v1.2.3