llvm-project/compiler-rt/test
Dan Liew 74c6aaf81c [lit] Support the `%shared_libasan` lit substitution on Apple platforms.
Summary:
The previous value looks Linux specific so that has been guarded with
the host OS being Linux.

On Apple platforms `%shared_libasan` expands to the absolute path of the
ASan dylib.

Previously on Linux `%shared_libasan` expanded to just the file name
of the shared library rather than the absolute path to the library.
This is likely a bug because it would rely on the OS's dynamic linker
to find the shared library which could accidentally pick up a system copy
rather than the shared library that was just built.

For other platforms we emit a warning if `config.asan_dynamic` is true.

This patch also only defines the substitution when `config.asan_dynamic`
is true because using this substitution only makes sense when the
dynamic library is available.

Reviewers: kubamracek, george.karpenkov, mgorny, phosek, etienneb, samsonov, kcc

Subscribers: #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D53111

llvm-svn: 344434
2018-10-12 23:36:23 +00:00
..
BlocksRuntime
asan [lit] Support the `%shared_libasan` lit substitution on Apple platforms. 2018-10-12 23:36:23 +00:00
builtins [compiler-rt] [builtins] Restore tests from r342917 (disabled in r343095) on Windows. 2018-09-27 18:13:01 +00:00
cfi [Cfi] Compiling cfi library on FreeBSD and NetBSD 2018-10-01 18:01:55 +00:00
dfsan Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
esan [Esan] Port cache frag to FreeBSD 2018-10-04 20:58:18 +00:00
fuzzer [SanitizerCoverage] Prevent /OPT:REF from stripping constructors 2018-10-12 18:11:47 +00:00
hwasan [hwasan] relax a test 2018-10-11 20:29:00 +00:00
interception Revert "[interception] Check for export table's size before referring to its elements." 2017-01-22 03:30:14 +00:00
lsan [lsan] Check that leak sanitizer works in the forked process 2018-08-27 19:15:05 +00:00
msan Mark 4 MSan tests as XFAIL for NetBSD 2018-10-09 12:55:29 +00:00
profile [profile] Fix the gcov tests after the patch in D49853 landed. 2018-10-11 08:53:55 +00:00
safestack SafeStack: Fix flaky test (PR39001) 2018-09-21 19:02:32 +00:00
sanitizer_common Don't harcode -ldl test/sanitizer_common/TestCases 2018-10-08 18:04:00 +00:00
scudo [scudo] Fix race condition in deallocation path when Quarantine is bypassed 2018-08-14 18:34:52 +00:00
shadowcallstack [scs] Disable negative test in shadowcallstack. 2018-06-29 15:16:45 +00:00
tsan Mark two tests, which require too much available VM, as "UNSUPPORTED: ios". 2018-10-03 00:30:03 +00:00
ubsan [compiler-rt][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks 2018-10-11 09:09:52 +00:00
ubsan_minimal [compiler-rt][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks 2018-10-11 09:09:52 +00:00
xray [XRay] Fix fdr-thread-order.cc when current directory contains fdr-thread-order.cc 2018-09-28 04:20:08 +00:00
CMakeLists.txt [libFuzzer] Enable tests on Windows 2018-09-04 17:08:47 +00:00
lit.common.cfg [Cfi] Compiling cfi library on FreeBSD and NetBSD 2018-10-01 18:01:55 +00:00
lit.common.configured.in [compiler-rt] Add NewPM testing to CFI tests 2018-07-19 15:32:48 +00:00