Author: adrian Date: Wed Mar 13 17:46:15 2019 New Revision: 356113 URL: http://llvm.org/viewvc/llvm-project?rev=356113&view=rev Log: Make sure that a sanitizer LLDB's environment doesn't get passed on to test binaries.
Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py?rev=356113&r1=356112&r2=356113&view=diff ============================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py (original) +++ lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Wed Mar 13 17:46:15 2019 @@ -1874,6 +1874,11 @@ class TestBase(Base): # differ in the debug info, which is not being hashed. self.runCmd('settings set symbols.enable-external-lookup false') + # Make sure that a sanitizer LLDB's environment doesn't get passed on. + if (('DYLD_INSERT_LIBRARIES' in os.environ) and + 'libclang_rt.asan' in os.environ['DYLD_INSERT_LIBRARIES']): + self.runCmd('settings set target.env-vars DYLD_INSERT_LIBRARIES=') + if "LLDB_MAX_LAUNCH_COUNT" in os.environ: self.maxLaunchCount = int(os.environ["LLDB_MAX_LAUNCH_COUNT"]) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits