Author: Augusto Noronha
Date: 2023-02-10T17:32:48-08:00
New Revision: 29fa21eb61293e677a8de4bacd843ef57192b60b

URL: 
https://github.com/llvm/llvm-project/commit/29fa21eb61293e677a8de4bacd843ef57192b60b
DIFF: 
https://github.com/llvm/llvm-project/commit/29fa21eb61293e677a8de4bacd843ef57192b60b.diff

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py 
b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
index 07e668c5115e..64ee1a682307 100644
--- a/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
+++ b/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
@@ -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)


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to