Author: friss
Date: Thu Feb 22 21:29:27 2018
New Revision: 325862

URL: http://llvm.org/viewvc/llvm-project?rev=325862&view=rev
Log:
Fix TestMultithreaded when there's no debugserver specified

r325858 was bogus and would error out with a KeyError when --server
was not passed to dotest.py.

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=325862&r1=325861&r2=325862&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:29:27 2018
@@ -101,7 +101,7 @@ class SBBreakpointCallbackCase(TestBase)
         exe = [test_exe, self.getBuildArtifact(self.inferior)]
 
         env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
-        if os.environ['LLDB_DEBUGSERVER_PATH']:
+        if 'LLDB_DEBUGSERVER_PATH' in os.environ:
             env['LLDB_DEBUGSERVER_PATH'] = os.environ['LLDB_DEBUGSERVER_PATH']
         if self.TraceOn():
             print("Running test %s" % " ".join(exe))


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to