llvm-project/compiler-rt/test/msan
Michal Gorny 965517fdad [test] Disable sunrpc tests when rpc/xdr.h is missing
Disable tests requiring sunrpc when the relevant headers are missing.
In order to accommodate that, move the header check
from sanitizer_common to base-config-ix, and define the check result
as a global variable there.  Use it afterwards both for definition
needed by sanitizer_common, and to control 'sunrpc' test feature.

While at it, remove the append_have_file_definition macro that was used
only once, and no longer fits the split check-definition.

Bug report: https://github.com/google/sanitizers/issues/974

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

llvm-svn: 351109
2019-01-14 19:18:34 +00:00
..
Linux [test] Disable sunrpc tests when rpc/xdr.h is missing 2019-01-14 19:18:34 +00:00
Unit Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00
scandir_test_root
CMakeLists.txt [msan] LIT: Add lld testing config 2017-12-12 19:17:52 +00:00
__strxfrm_l.cc [msan] Intercept __strxfrm_l. 2017-10-25 21:40:17 +00:00
alloca.cc [msan] Test for alloca handling. 2017-02-24 00:13:28 +00:00
allocator_mapping.cc [mips] XFAIL mips64el tests that fail on clang-cmake-mipsel 2016-08-15 15:14:08 +00:00
backtrace.cc Fix typo (ordered comparison between pointer and 0). 2016-10-21 21:37:18 +00:00
c-strdup.c [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
chained_origin.cc [MSAN][MIPS] Fix fork.cc test on MIPS 2016-12-08 06:30:58 +00:00
chained_origin_empty_stack.cc [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
chained_origin_limits.cc [MSAN][MIPS] Fix fork.cc test on MIPS 2016-12-08 06:30:58 +00:00
chained_origin_memcpy.cc [compiler-rt][mips] Fix a test for mips. 2017-05-09 17:58:33 +00:00
chained_origin_with_signals.cc Mark 4 MSan tests as XFAIL for NetBSD 2018-10-09 12:55:29 +00:00
check-handler.cc [MSan] Print current stack on CHECK violation 2018-02-26 18:27:24 +00:00
check_mem_is_initialized.cc [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
coverage-levels.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
ctermid.cc [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
cxa_atexit.cc [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
death-callback.cc [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
default_blacklist.cc
dlerror.cc [mips][msan] Fix all the XPASSes following r278793 and r278795 2016-08-18 10:50:46 +00:00
dlopen_executable.cc [msan] Don't unpoison phdrs on dlopen(NULL, 0) 2015-11-19 00:55:45 +00:00
dso-origin.cc
dtls_test.c [test] Detect glibc-2.27+ and XFAIL appropriate tests 2019-01-09 13:27:29 +00:00
dtor-base-access.cc Removed xfail, since test is passing in line with expanded dtor sanitizing functionality 2015-08-13 20:54:05 +00:00
dtor-bit-fields.cc Test triangle inheritance member poisoning. 2015-09-03 23:06:13 +00:00
dtor-derived-class.cc Test triangle inheritance member poisoning. 2015-09-03 23:06:13 +00:00
dtor-member.cc [MSan] Enable use-after-dtor instrumentation by default. 2018-01-10 20:27:48 +00:00
dtor-multiple-inheritance-nontrivial-class-members.cc Failing test highlighting no poisoning when destructor not declared. 2015-09-08 22:41:50 +00:00
dtor-multiple-inheritance.cc Explicit reference to bug highlighted by 2015-09-16 00:41:28 +00:00
dtor-trivial-class-members.cc Test triangle inheritance member poisoning. 2015-09-03 23:06:13 +00:00
dtor-trivial.cpp Explicit reference to bug highlighted by 2015-09-16 00:41:28 +00:00
dtor-vtable-multiple-inheritance.cc Explicit reference to bug highlighted by 2015-09-16 00:41:28 +00:00
dtor-vtable.cc Explicit reference to bug highlighted by 2015-09-16 00:41:28 +00:00
errno.cc
fgets_fputs.cc [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
fork.cc Mark MSan fork test as UNSUPPORTED on NetBSD 2018-10-09 11:24:10 +00:00
fread_fwrite.cc [sanitizer] Move fread and fwrite interceptors to sanitizer_common 2017-03-30 07:25:33 +00:00
fstat.cc Add MSan interceptor for fstat(2) 2018-01-03 22:28:39 +00:00
ftime.cc Disable test/msan/ftime.cc on NetBSD 2017-12-09 00:36:17 +00:00
getaddrinfo-positive.cc
getaddrinfo.cc
getc_unlocked.c
getline.cc [Msan] Fix the getline.cc test to pass on FreeBSD 2015-04-28 10:23:52 +00:00
getloadavg.cc [msan] Intercept getloadavg. 2017-03-16 01:06:22 +00:00
getutent.cc Adding Msan support to FreeBSD 2018-03-03 11:43:11 +00:00
heap-origin.cc
icmp_slt_allones.cc [msan] Regression test for PR24561. 2015-08-25 22:20:15 +00:00
iconv.cc Adding Msan support to FreeBSD 2018-03-03 11:43:11 +00:00
if_indextoname.cc [Msan] Fix the if_indextoname.cc test to pass on FreeBSD 2015-05-11 14:46:16 +00:00
ifaddrs.cc Fix test/msan/ifaddrs.cc for NetBSD 2017-12-09 00:36:49 +00:00
initgroups.cc [Msan] Fix the initgroups.cc test to build on FreeBSD 2015-05-06 09:26:35 +00:00
inline.cc
insertvalue_origin.cc [compiler-rt] [msan] Remove stable-runtime requirement for insertvalue_origin.cc 2016-01-12 15:16:34 +00:00
ioctl.cc [msan] Replace AF_INET with AF_UNIX to avoid IPv4 vs IPv6 issues. 2017-04-10 17:58:03 +00:00
ioctl_custom.cc Mark 4 MSan tests as XFAIL for NetBSD 2018-10-09 12:55:29 +00:00
lit.cfg [Msan] Fix unit test linkage issue on FreeBSD 2018-09-11 10:35:32 +00:00
lit.site.cfg.in [msan] LIT: Add lld testing config 2017-12-12 19:17:52 +00:00
memcmp_test.cc [MSAN] Fix memcmp_test on MIPS 2016-02-24 13:48:14 +00:00
mktime.cc
mmap.cc [MemorySanitizer] fix mmap test for oses not implementing MAP_NORESERVE flag 2018-05-25 20:30:39 +00:00
mmap_below_shadow.cc [MSan] Enable MSAN for aarch64 2015-09-16 15:12:25 +00:00
msan_check_mem_is_initialized.cc [compiler-rt] Remove redundant --check-prefix=CHECK from test 2016-10-23 00:55:12 +00:00
msan_copy_shadow.cc [MSAN][MIPS] Fix fork.cc test on MIPS 2016-12-08 06:30:58 +00:00
msan_dump_shadow.cc
msan_print_shadow.cc
msan_print_shadow2.cc
msan_print_shadow3.cc Update sanitizer tests for C++14 default in Clang 2017-12-09 13:35:52 +00:00
mul_by_const.cc
no_sanitize_memory.cc
no_sanitize_memory_prop.cc
origin-store-long.cc
param_tls_limit.cc [Compiler-rt][MSan] fix param_tls_limit test for platforms where big arguments are sliced in smaller ones 2016-03-01 05:53:30 +00:00
poison_in_free.cc
pr32842.c [msan] add a regression test for PR32842 2017-05-11 11:12:26 +00:00
print_stats.cc Use -fsanitize-recover instead of -mllvm -msan-keep-going: tests. 2016-11-07 21:02:56 +00:00
pthread_getattr_np_deadlock.cc MSan, FreeBSD few tests fixes 2018-03-15 22:41:28 +00:00
pthread_getname_np.cc Enable test/msan/pthread_getname_np.cc for NetBSD 2018-12-15 10:42:14 +00:00
pthread_setcancelstate.cc [msan] Intercept pthread_getcancel*. 2015-10-19 23:00:13 +00:00
rand_r.cc
readdir64.cc
realloc-large-origin.cc [MSAN][MIPS] Fix fork.cc test on MIPS 2016-12-08 06:30:58 +00:00
realloc-origin.cc
recover-dso.cc Use -fsanitize-recover instead of -mllvm -msan-keep-going: tests. 2016-11-07 21:02:56 +00:00
recover.cc Use -fsanitize-recover instead of -mllvm -msan-keep-going: tests. 2016-11-07 21:02:56 +00:00
report-demangling.cc [Msan] Fix the report-demangling.cc test to pass on FreeBSD 2015-05-08 12:10:46 +00:00
scandir.cc
scandir_null.cc
scoped-interceptors.cc [MSan] Add functions to enable/disable interceptor checks. 2018-07-06 17:10:51 +00:00
select.cc
select_float_origin.cc
select_origin.cc
sem_getvalue.cc [sanitizer] Move sem_* to common interceptors. 2015-08-27 18:51:18 +00:00
setlocale.cc
sigaction.cc [msan] Check sigset_t and sigaction arguments. 2017-09-05 21:08:56 +00:00
signal_stress_test.cc Mark 4 MSan tests as XFAIL for NetBSD 2018-10-09 12:55:29 +00:00
sigwait.cc [msan] Check sigset_t and sigaction arguments. 2017-09-05 21:08:56 +00:00
sigwaitinfo.cc
stack-origin.cc
stack-origin2.cc
strerror_r-non-gnu.c
strlen_of_shadow.cc Adding Msan support to FreeBSD 2018-03-03 11:43:11 +00:00
strndup.cc [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
strxfrm.cc [msan] Intercept __strxfrm_l. 2017-10-25 21:40:17 +00:00
sync_lock_set_and_test.cc
test.h [MSan] Enable MSAN for aarch64 2015-09-16 15:12:25 +00:00
textdomain.cc Adding Msan support to FreeBSD 2018-03-03 11:43:11 +00:00
times.cc
tls_reuse.cc [msan] Remove XFAIL: freebsd from test/msan/tls_reuse.cc 2018-08-18 23:25:55 +00:00
tsearch.cc Adding Msan support to FreeBSD 2018-03-03 11:43:11 +00:00
tzset.cc Adding Msan support to FreeBSD 2018-03-03 11:43:11 +00:00
unaligned_read_origin.cc
unpoison_string.cc
use-after-dtor.cc [MSan] Enable use-after-dtor instrumentation by default. 2018-01-10 20:27:48 +00:00
use-after-free.cc
vararg.cc [MSan] store origins for variadic function parameters in __msan_va_arg_origin_tls 2018-09-06 15:14:36 +00:00
vector_cvt.cc [tests] Remove "supported-target" in favor of "target-arch" lit features. 2016-02-23 01:58:56 +00:00
vector_div.cc [msan] Don't check divisor shadow in fdiv. 2018-05-18 20:19:53 +00:00
vector_select.cc Enable this test for PPC64. 2015-07-05 08:11:36 +00:00
wcsncpy.cc Renumber test line number expectations after r302783. 2017-05-11 14:04:23 +00:00
wcsxfrm.cc [sanitizer] Add interceptors for wcsxfrm, wcsxfrm_l 2018-03-07 00:14:12 +00:00