[Lldb-commits] [PATCH] D43546: Fix TestMultithreaded when specifying an alternative debugserver.

Frederic Riss via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 20 23:00:21 PST 2018


friss created this revision.

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.

I'd love to hear if anyone has a nicer idea how to get access to the
alternative server passed on the command line.


https://reviews.llvm.org/D43546

Files:
  packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py


Index: packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
===================================================================
--- packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
+++ packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
@@ -101,6 +101,8 @@
         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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43546.135199.patch
Type: text/x-patch
Size: 689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180221/b10a8828/attachment.bin>


More information about the lldb-commits mailing list