summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2018-02-23 05:03:09 +0000
committerFrederic Riss <friss@apple.com>2018-02-23 05:03:09 +0000
commit8492f2081d1f1a564caddd7dbfb553855873b583 (patch)
tree6a118bb72d5fbb9a5fc21a1a497694dbab22bfe7 /lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
parent6c4dbfeec1e7008294136590b73c3cc29edafbb1 (diff)
downloadbcm5719-llvm-8492f2081d1f1a564caddd7dbfb553855873b583.tar.gz
bcm5719-llvm-8492f2081d1f1a564caddd7dbfb553855873b583.zip
Fix TestMultithreaded when specifying an alternative debugserver.
Summary: This test launches a helper that uses the debugserver. The environment variable sepcifying the debug server wasn't passed to this helper, thus it was using the default one. Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D43546 llvm-svn: 325858
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py b/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
index 5789c44a2fc..36c4d928262 100644
--- a/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
+++ b/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
@@ -101,6 +101,8 @@ class SBBreakpointCallbackCase(TestBase):
exe = [test_exe, self.getBuildArtifact(self.inferior)]
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
+ if os.environ['LLDB_DEBUGSERVER_PATH']:
+ env['LLDB_DEBUGSERVER_PATH'] = os.environ['LLDB_DEBUGSERVER_PATH']
if self.TraceOn():
print("Running test %s" % " ".join(exe))
check_call(exe, env=env)
OpenPOWER on IntegriCloud