Fix `skipIfSanitized` decorator on macOS
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 1 Aug 2019 18:35:40 +0000 (18:35 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 1 Aug 2019 18:35:40 +0000 (18:35 +0000)
commit52f12f63f4ecaab157c9a056f6185746d87cd6e3
tree87b217fbfa4a27372c511ea4eb8bd3151f41946a
parent172838df6bc9c7754b030776428f875b57d70ed2
Fix `skipIfSanitized` decorator on macOS

For security reasons, DYLD_INSERT_LIBRARIES is not propagated to a child
process. This breaks the skipIfSanitized decorator, which checks for the
environment variable being set. Instead, always set the ASAN_OPTIONS and
make the decorator check for that.

Differential revision: https://reviews.llvm.org/D65594

llvm-svn: 367595
lldb/lit/Suite/lit.cfg
lldb/packages/Python/lldbsuite/test/decorators.py
lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py