diff options
author | Frederic Riss <friss@apple.com> | 2018-02-23 05:29:27 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2018-02-23 05:29:27 +0000 |
commit | 0fda3a872110e1e86383049dca6ad3339085a843 (patch) | |
tree | 4bb0cdae8130988baaf465203779d73a9bbe92a4 /lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py | |
parent | 93102974386d5fe5ea217ec3d4aeda55395db4ff (diff) | |
download | bcm5719-llvm-0fda3a872110e1e86383049dca6ad3339085a843.tar.gz bcm5719-llvm-0fda3a872110e1e86383049dca6ad3339085a843.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py b/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py index 36c4d928262..4e550c9c24d 100644 --- a/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py +++ b/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py @@ -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)) |