Skip to content

Commit ca966ee

Browse files
authored
Merge pull request #6271 from augusto2112/1013-asan-args
Adapt TestCustomShell and TestMultipleDebuggers to run under ASAN
2 parents 23919ba + da07e80 commit ca966ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class TestMultipleSimultaneousDebuggers(TestBase):
1515
@skipIfNoSBHeaders
1616
@skipIfWindows
1717
def test_multiple_debuggers(self):
18-
env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
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)}
1921

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

lldb/test/Shell/Host/TestCustomShell.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
99
# RUN: SHELL=bogus not %lldb %t.out -b -o 'process launch -X 1 --' 2>&1 | FileCheck %s --check-prefix ERROR
10-
# RUN: env -i %lldb %t.out -b -o 'process launch -X 1 --' 2>&1 | FileCheck %s
10+
# RUN: env -i ASAN_OPTIONS='detect_container_overflow=0' %lldb %t.out -b -o 'process launch -X 1 --' 2>&1 | FileCheck %s
1111

1212
# ERROR: error: shell expansion failed
1313
# CHECK-NOT: error: shell expansion failed

0 commit comments

Comments
 (0)