llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix
Rainer Orth 3b8b5d1f22 [sanitizer_common][test] Handle missing REG_STARTEND in Posix/regex_startend.cpp
As reported in D96348 <https://reviews.llvm.org/D96348>, the
`Posix/regex_startend.cpp` test `FAIL`s on Solaris because
`REG_STARTEND` isn't defined.  It's a BSD extension not present everywhere.
E.g. AIX doesn't have it, too.

Fixed by wrapping the test in `#ifdef REG_STARTEND`.

Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and
`x86_64-pc-linux-gnu`.

Differential Revision: https://reviews.llvm.org/D98425
2021-03-17 09:56:19 +01:00
..
access.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
arc4random.cpp [Sanitizer] arc4random interception on Mac 2019-08-19 18:12:15 +00:00
create_thread_fail.cpp [asan] Fix pthread_create interceptor 2021-02-03 12:57:56 -08:00
crypt.cpp Fix crypt.cpp sanitizer test on FreeBSD 2020-08-25 12:20:33 +01:00
dedup_token_length_test.cpp [asan][tsan] Mark tests failing with debug checks as XFAIL 2020-08-03 10:51:35 +01:00
devname.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
devname_r.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
dump_instruction_bytes.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
dump_registers.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
feof_fileno_ferror.cpp Update Sanitizer tests for Android R. 2020-02-27 14:15:21 -08:00
fgetc_ungetc_getc.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
fgetln.cpp [sanitizers][test] Test sanitizer_common and ubsan_minimal on Solaris 2020-11-20 14:06:25 +01:00
fgets.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
fpe.cpp [UBSan] Follow up fix for r371442. 2019-09-09 21:00:25 +00:00
fputc_putc_putchar.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
fputs_puts.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
fseek.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
fts.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
funopen.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
getc_unlocked.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
getfsent.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
getmntinfo.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
getpass.cpp [ASAN][NFC] Improve language 2021-02-12 02:55:58 -08:00
getpw_getgr.cpp [sanitizers][test] Test sanitizer_common and ubsan_minimal on Solaris 2020-11-20 14:06:25 +01:00
getrandom.c [sanitizer] Assume getrandom might not be supported by the kernel 2020-11-05 08:32:53 -03:00
getusershell.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
illegal_read_test.cpp [asan][tsan] Mark tests failing with debug checks as XFAIL 2020-08-03 10:51:35 +01:00
illegal_write_test.cpp [asan][tsan] Mark tests failing with debug checks as XFAIL 2020-08-03 10:51:35 +01:00
lit.local.cfg.py
lstat.cpp [sanitizers][test] Test sanitizer_common and ubsan_minimal on Solaris 2020-11-20 14:06:25 +01:00
mmap_test.c
nl_langinfo.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
popen.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
posix_memalign-alignment.cpp [tsan] Relax stack trace check 2020-04-28 23:57:03 -07:00
print-module-map.cpp [sanitizer] Don't expect ABORTING in print-module-map 2021-03-05 19:22:34 -08:00
putc_putchar_unlocked.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
readlink.c
readlinkat.c
recursion-in-qsort.cpp Fix qsort() interceptor for FreeBSD 2020-08-06 09:15:56 +01:00
regex.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
regex_startend.cpp [sanitizer_common][test] Handle missing REG_STARTEND in Posix/regex_startend.cpp 2021-03-17 09:56:19 +01:00
sanitizer_set_death_callback_test.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
sanitizer_set_report_fd_test.cpp [asan][tsan] Mark tests failing with debug checks as XFAIL 2020-08-03 10:51:35 +01:00
sanitizer_set_report_path_test.cpp [sanitizer_common] Add facility to get the full report path 2020-11-19 09:19:12 -08:00
setvbuf.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
sl_add.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
strlcat.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
strlcpy.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
strtonum.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
strxfrm.c [compiler-rt] Fix compiler warnings and runtime errors in sanitizer RT strxfrm(_l) test cases. 2020-07-13 22:35:01 +00:00
sysctl.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
uname.c [sanitizers][test] Test sanitizer_common and ubsan_minimal on Solaris 2020-11-20 14:06:25 +01:00
vis.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00
wcsdup.c
wcsxfrm.c
weak_hook_test.cpp compiler-rt: Rename cc files below test/sanitizer_common to cpp 2019-08-05 13:57:03 +00:00