Skip to content

Commit 18aa09a

Browse files
authored
Merge pull request #6272 from augusto2112/fix-env-vars
[lldb] Fix passing None as an env variable in TestMultipleDebuggers
2 parents ca966ee + a3be76c commit 18aa09a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ class TestMultipleSimultaneousDebuggers(TestBase):
1515
@skipIfNoSBHeaders
1616
@skipIfWindows
1717
def test_multiple_debuggers(self):
18-
env = {self.dylibPath: self.getLLDBLibraryEnvVal(),
19-
# We need this in order to run under ASAN, in case only LLDB is ASANified.
20-
'ASAN_OPTIONS': os.getenv('ASAN_OPTIONS', None)}
18+
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
19+
20+
# We need this in order to run under ASAN, in case only LLDB is ASANified.
21+
asan_options = os.getenv('ASAN_OPTIONS', None)
22+
if (asan_options is not None):
23+
env['ASAN_OPTIONS'] = asan_options
2124

2225
self.driver_exe = self.getBuildArtifact("multi-process-driver")
2326
self.buildDriver('multi-process-driver.cpp', self.driver_exe)

0 commit comments

Comments
 (0)