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.

llvm-svn: 325862
This commit is contained in:
Frederic Riss 2018-02-23 05:29:27 +00:00
parent 9310297438
commit 0fda3a8721
1 changed files with 1 additions and 1 deletions

View File

@ -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))