llvm-project/compiler-rt/test
Nico Weber cddc153102 builtins test: Move clear_cache_test.c from a mprotect()ed global to a mmap()ed variable
ld64 in the macOS 10.15 SDK gives __DATA a maxprot of 3, meaning it
can't be made executable at runtime by default.

Change clear_cache_test.c to use mmap()ed data that's mapped as writable
and executable from the beginning, instead of trying to mprotect()ing a
__DATA variable as executable. This fixes the test on macOS with the
10.15 SDK.

PR43407.

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

llvm-svn: 372849
2019-09-25 11:57:51 +00:00
..
BlocksRuntime Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
asan Avoid memory leak in ASan test 2019-09-21 07:43:55 +00:00
builtins builtins test: Move clear_cache_test.c from a mprotect()ed global to a mmap()ed variable 2019-09-25 11:57:51 +00:00
cfi [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
crt compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
dfsan compiler-rt: Rename .cc file in test/dfsan to cpp 2019-08-05 13:19:28 +00:00
fuzzer [libFuzzer] Remove hardcoded number of new features in merge_two_step.test. 2019-09-11 19:43:03 +00:00
gwp_asan compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
hwasan [hwasan] Fix test failure in r369721. 2019-08-26 21:44:55 +00:00
interception [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
lsan [lsan] Fix deadlock in dl_iterate_phdr. 2019-09-19 19:52:57 +00:00
msan msan, codegen, instcombine: Keep more lifetime markers used for msan 2019-08-26 22:15:50 +00:00
profile [llvm-cov] NFC: Specify a specific C++ standard in the test. 2019-09-24 00:01:51 +00:00
safestack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
sanitizer_common [compiler-rt] Run cpplint only for check-sanitizer 2019-09-12 01:35:11 +00:00
scudo compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
shadowcallstack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
tsan [TSAN] Add read/write range interface functions with PC 2019-09-24 11:19:02 +00:00
ubsan Remove xfail i386 NetBSD mark in vptr-non-unique-typeinfo.cpp 2019-09-10 23:55:03 +00:00
ubsan_minimal compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
xray [XRay] Fixing one test case for FreeBSD 2019-08-28 14:18:05 +00:00
.clang-format [compiler-rt] Use "ColumnLimit: 0" instead of "clang-format off" in tests 2018-12-01 01:24:29 +00:00
CMakeLists.txt [compiler-rt] Run cpplint only for check-sanitizer 2019-09-12 01:35:11 +00:00
lit.common.cfg.py compiler-rt: Rename cc files below test/asan to cpp 2019-08-05 16:48:12 +00:00
lit.common.configured.in [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00