mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
[lldb] Fix passing None as an env variable in TestMultipleDebuggers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user