llvm-project/compiler-rt/lib/asan/tests
Collin Baker 8c66d78172 [test] Fix asan dynamic unit tests with per-target runtime dirs
When LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on
Asan-i386-calls-Dynamic-Test and Asan-i386-inline-Dynamic-Test fail to
run on a x86_64 host. This is because asan's unit test lit files are
configured once, rather than per target arch as with the non-unit
tests. LD_LIBRARY_PATH ends up incorrect, and the tests try linking
against the x86_64 runtime which fails.

This changes the unit test CMake machinery to configure the default
and dynamic unit tests once per target arch, similar to the other asan
tests. Then the fix from https://reviews.llvm.org/D108859 is adapted
to the unit test Lit files with some modifications.

Fixes PR52158.

Differential Revision: https://reviews.llvm.org/D111756
2021-10-14 16:47:25 -04:00
..
CMakeLists.txt [test] Fix asan dynamic unit tests with per-target runtime dirs 2021-10-14 16:47:25 -04:00
asan_benchmarks_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_exceptions_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_fake_stack_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_globals_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_interface_test.cpp [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
asan_internal_interface_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_mac_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_mac_test.h
asan_mac_test_helpers.mm
asan_mem_test.cpp [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
asan_noinst_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_oob_test.cpp Try to fix OOB tests more on Windows after r367642 2019-08-05 15:10:15 +00:00
asan_racy_double_free_test.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_str_test.cpp [NFC][compiler-rt][test] Fully qualify string -> std::string 2020-02-19 08:59:26 -08:00
asan_test.cpp [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
asan_test.ignore [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
asan_test_config.h [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
asan_test_main.cpp compiler-rt: Rename .cc file in lib/asan/tests to .cpp 2019-08-01 13:48:31 +00:00
asan_test_utils.h [NFC][compiler-rt][test] Fully qualify string -> std::string 2020-02-19 08:59:26 -08:00