diff --git a/lldb/test/Shell/Expr/nodefaultlib.cpp b/lldb/test/Shell/Expr/nodefaultlib.cpp --- a/lldb/test/Shell/Expr/nodefaultlib.cpp +++ b/lldb/test/Shell/Expr/nodefaultlib.cpp @@ -2,6 +2,7 @@ // standard library (and mmap-like functions in particular). // REQUIRES: native +// UNSUPPORTED: ld_preload-present // XFAIL: system-linux && !(target-x86 || target-x86_64) // XFAIL: system-netbsd || system-freebsd || system-darwin diff --git a/lldb/test/Shell/lit.cfg.py b/lldb/test/Shell/lit.cfg.py --- a/lldb/test/Shell/lit.cfg.py +++ b/lldb/test/Shell/lit.cfg.py @@ -140,3 +140,6 @@ can_set_dbregs = False if can_set_dbregs: config.available_features.add('dbregs-set') + +if 'LD_PRELOAD' in os.environ: + config.available_features.add('ld_preload-present')