llvm-project/compiler-rt/test/asan/TestCases/Darwin
Kuba Brecka bb39671516 [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths
MaybeReexec() in asan_mac.cc checks for presence of the ASan dylib in DYLD_INSERT_LIBRARIES, and if it is there, it will process this env. var. and remove the dylib from its value, so that spawned children don't have this variable set. However, the current implementation only works when using a canonical absolute path to the dylib, it fails to remove the dylib for example when using @executable_path.

This patch changes the processing of DYLD_INSERT_LIBRARIES to comparing values only based on filenames (ignoring directories).

Reviewed at http://reviews.llvm.org/D7160

llvm-svn: 228392
2015-02-06 12:07:29 +00:00
..
address-range-limit.mm [asan] Adding a regression test for https://code.google.com/p/address-sanitizer/issues/detail?id=368 2015-01-09 00:26:45 +00:00
asan_gen_prefixes.cc
crashlog-stacktraces.c Fix/workaround for OS X truncated stacktraces taken by external tools 2015-01-22 23:36:47 +00:00
cstring_literals_regtest.mm Add %run to all lit tests 2014-04-30 21:34:17 +00:00
dyld_insert_libraries_reexec.cc [ASan] Fix the test expectations for dyld_insert_libraries_reexec.cc 2015-01-21 10:04:41 +00:00
dyld_insert_libraries_remove.cc [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths 2015-02-06 12:07:29 +00:00
interception-in-shared-lib-test.cc [ASan] Use rpath in tests that produce a shared library 2015-01-27 01:29:18 +00:00
interface_symbols_darwin.c [ASan] Fix interface_symbols_darwin.c test 2015-02-05 13:07:50 +00:00
linked-only.cc [compiler-rt] Ensure AsanInitFromRtl is called from a static initializer on OS X by using ASAN_DYNAMIC=1 2015-01-23 19:29:19 +00:00
lit.local.cfg
malloc_set_zone_name-mprotect.cc Add %run to all lit tests 2014-04-30 21:34:17 +00:00
malloc_zone-protected.cc Add %run to all lit tests 2014-04-30 21:34:17 +00:00
mixing-global-constructors.cc [compiler-rt] Ensure AsanInitFromRtl is called from a static initializer on OS X by using ASAN_DYNAMIC=1 2015-01-23 19:29:19 +00:00
objc-odr.mm Recommit of r223513 and r223514. 2014-12-05 22:19:35 +00:00
reexec-insert-libraries-env.cc [ASan tests] Get rid of SharedLibs/ 2014-05-14 14:41:38 +00:00
suppressions-darwin.cc Fix suppressions file usage 2014-12-18 18:25:18 +00:00
unset-insert-libraries-on-exec.cc [ASan tests] Get rid of SharedLibs/ 2014-05-14 14:41:38 +00:00