[Lldb-commits] [PATCH] D143772: Adapt TestCustomShell and TestMultipleDebuggers to run under ASAN
Augusto Noronha via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 10 17:19:37 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG294ca122956f: Adapt TestCustomShell and TestMultipleDebuggers to run under ASAN (authored by augusto2112).
Changed prior to commit:
https://reviews.llvm.org/D143772?vs=496567&id=496643#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143772/new/
https://reviews.llvm.org/D143772
Files:
lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
lldb/test/Shell/Host/TestCustomShell.test
Index: lldb/test/Shell/Host/TestCustomShell.test
===================================================================
--- lldb/test/Shell/Host/TestCustomShell.test
+++ lldb/test/Shell/Host/TestCustomShell.test
@@ -7,7 +7,7 @@
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
# RUN: SHELL=bogus not %lldb %t.out -b -o 'process launch -X 1 --' 2>&1 | FileCheck %s --check-prefix ERROR
-# RUN: env -i %lldb %t.out -b -o 'process launch -X 1 --' 2>&1 | FileCheck %s
+# RUN: env -i ASAN_OPTIONS='detect_container_overflow=0' %lldb %t.out -b -o 'process launch -X 1 --' 2>&1 | FileCheck %s
# ERROR: error: shell expansion failed
# CHECK-NOT: error: shell expansion failed
Index: lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
===================================================================
--- lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
+++ lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py
@@ -15,7 +15,9 @@
@skipIfNoSBHeaders
@skipIfWindows
def test_multiple_debuggers(self):
- env = {self.dylibPath: self.getLLDBLibraryEnvVal()}
+ 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)}
self.driver_exe = self.getBuildArtifact("multi-process-driver")
self.buildDriver('multi-process-driver.cpp', self.driver_exe)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143772.496643.patch
Type: text/x-patch
Size: 1468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230211/c0aea707/attachment-0001.bin>
More information about the lldb-commits
mailing list