diff options
| author | Vedant Kumar <vsk@apple.com> | 2019-12-11 16:19:08 -0800 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2020-01-10 14:52:51 -0800 |
| commit | 4c00dbf22d7f0ad005444b412b450ee4b4779b6a (patch) | |
| tree | 2b53cad68a8464cae20e464f73768291fdee2b7e /lldb/test/API | |
| parent | c5adcdc5c88a89241b1150824fc44370c62c7132 (diff) | |
| download | bcm5719-llvm-4c00dbf22d7f0ad005444b412b450ee4b4779b6a.tar.gz bcm5719-llvm-4c00dbf22d7f0ad005444b412b450ee4b4779b6a.zip | |
lldbutil: Forward ASan launch info to test inferiors
This allows an unsanitized test process which loads a sanitized DSO (the
motivating example is a Swift runtime dylib) to launch on Darwin.
rdar://57290132
Differential Revision: https://reviews.llvm.org/D71379
Diffstat (limited to 'lldb/test/API')
| -rw-r--r-- | lldb/test/API/lit.cfg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index aca13b9c64f..631a8a4a33b 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -87,6 +87,12 @@ dotest_cmd.extend(config.dotest_args_str.split(';')) if config.llvm_libs_dir: dotest_cmd += ['--env', 'LLVM_LIBS_DIR=' + config.llvm_libs_dir] +# Forward ASan-specific environment variables to tests, as a test may load an +# ASan-ified dylib. +for env_var in ('ASAN_OPTIONS', 'DYLD_INSERT_LIBRARIES'): + if env_var in config.environment: + dotest_cmd += ['--inferior-env', env_var + '=' + config.environment[env_var]] + if config.lldb_build_directory: dotest_cmd += ['--build-dir', config.lldb_build_directory] |

