[Lldb-commits] [PATCH] D143772: Adapt TestCustomShell and TestMultipleDebuggers to run under ASAN
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 10 12:30:37 PST 2023
aprantl added a comment.
Generally LGTM, with one possible improvement inline!
================
Comment at: lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py:20
+ # We need this in order to run under ASAN, in case only LLDB is ASANified.
+ 'ASAN_OPTIONS':'detect_container_overflow=0'}
----------------
IIUC, the python process executing this python code should already have this flag passed in via lit, so if it's possible to say something like `'ASAN_OPTIONS':getEnv('ASAN_OPTIONS'` then that would be the cleanest implementation.
================
Comment at: lldb/test/Shell/Host/TestCustomShell.test:10
# 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
----------------
This is as good as we can do.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143772/new/
https://reviews.llvm.org/D143772
More information about the lldb-commits
mailing list