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. llvm-svn: 325340
This commit is contained in:
parent
1a584e898b
commit
1c7211d754
|
@ -34,9 +34,9 @@ class TestPlatformProcessConnect(gdbremote_testcase.GdbRemoteTestCaseBase):
|
|||
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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue