[Lldb-commits] [lldb] r325340 - Shorten socket names in TestPlatformProcessConnect
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 16 04:57:35 PST 2018
Author: labath
Date: Fri Feb 16 04:57:35 2018
New Revision: 325340
URL: http://llvm.org/viewvc/llvm-project?rev=325340&view=rev
Log:
Shorten socket names in TestPlatformProcessConnect
The test was generating long unix socket names, and the addition of a
new folder in the previous patch pushed it over the limit (although
linux has a fairly generous limit for path names, this does not apply to
unix sockets).
Modify the test to use a shorter name instead.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/platform-process-connect/TestPlatformProcessConnect.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/platform-process-connect/TestPlatformProcessConnect.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/platform-process-connect/TestPlatformProcessConnect.py?rev=325340&r1=325339&r2=325340&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/platform-process-connect/TestPlatformProcessConnect.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/platform-process-connect/TestPlatformProcessConnect.py Fri Feb 16 04:57:35 2018
@@ -34,9 +34,9 @@ class TestPlatformProcessConnect(gdbremo
unix_protocol = protocol.startswith("unix-")
if unix_protocol:
p = re.search("^(.*)-connect", protocol)
- listen_url = "%s://%s" % (p.group(1),
- os.path.join(working_dir,
- "platform-%d.sock" % int(time.time())))
+ path = lldbutil.join_remote_paths(configuration.lldb_platform_working_dir,
+ self.getBuildDirBasename(), "platform-%d.sock" % int(time.time()))
+ listen_url = "%s://%s" % (p.group(1), path)
else:
listen_url = "*:0"
More information about the lldb-commits
mailing list