[Lldb-commits] [lldb] r325858 - Fix TestMultithreaded when specifying an alternative debugserver.

Frederic Riss via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 22 21:03:09 PST 2018


Author: friss
Date: Thu Feb 22 21:03:09 2018
New Revision: 325858

URL: http://llvm.org/viewvc/llvm-project?rev=325858&view=rev
Log:
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

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py?rev=325858&r1=325857&r2=325858&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py Thu Feb 22 21:03:09 2018
@@ -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)




More information about the lldb-commits mailing list