[lldb] Fix passing None as an env variable in TestMultipleDebuggers

This commit is contained in:
Augusto Noronha
2023-02-10 17:32:48 -08:00
parent 294ca12295
commit 29fa21eb61

View File

@@ -15,9 +15,12 @@ class TestMultipleSimultaneousDebuggers(TestBase):
@skipIfNoSBHeaders
@skipIfWindows
def test_multiple_debuggers(self):
env = {self.dylibPath: self.getLLDBLibraryEnvVal(),
# We need this in order to run under ASAN, in case only LLDB is ASANified.
'ASAN_OPTIONS': os.getenv('ASAN_OPTIONS', None)}
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
# We need this in order to run under ASAN, in case only LLDB is ASANified.
asan_options = os.getenv('ASAN_OPTIONS', None)
if (asan_options is not None):
env['ASAN_OPTIONS'] = asan_options
self.driver_exe = self.getBuildArtifact("multi-process-driver")
self.buildDriver('multi-process-driver.cpp', self.driver_exe)