llvm-project/compiler-rt/test/sanitizer_common/TestCases
Evgeniy Stepanov eb37fcbc87 [sanitizer] Fix sem_init_glibc.cc test on __HAVE_64B_ATOMIC arches.
glibc can use one of 2 layouts for semaphores: architectures that
don't HAVE_64B_ATOMIC use an uint32_t field with semaphore value,
then a private field, then a waiting thread count field - this is
the layout currently assumed by the test. However, HAVE_64B_ATOMIC
arches use a fused uint64_t field that contains the value in low bits
and waiting thread count in high bits, followed by a private field.

This resulted in taking private field from the wrong offset on 64-bit
atomic platforms (the test still passed, but didn't actually test
the private field). On big-endian platforms, this resulted in a fail,
since the first 4 bytes overlay the thread count field, and not
the value field.

Found while porting ASan to s390x.

Patch by Marcin Kościelnicki.

llvm-svn: 265715
2016-04-07 20:26:28 +00:00
..
Darwin Fix PR26608: Make sanitizer_common tests more portable. 2016-02-17 21:00:50 +00:00
Linux [sanitizer] Fix sem_init_glibc.cc test on __HAVE_64B_ATOMIC arches. 2016-04-07 20:26:28 +00:00
Posix [sanitizer_common tests] Make Darwin a Posix system and bring the stable-runtime definition from ASan tests. 2016-03-10 18:46:23 +00:00
corelimit.cc [TSan] Initialize flags as early as possible. Disables back coredump, accidentally enabled in r215479. Add a test. 2014-08-15 19:53:51 +00:00
fopen_nullptr.c [asan] fix fopen interceptor to not crash if path is NULL 2015-12-21 19:22:26 +00:00
malloc_hook.cc [MSan] Add a test case for r258339. 2016-01-21 17:51:08 +00:00
options-help.cc [Sanitizer] Test churn: use %env_tool_opts in sanitizer_common lit tests. 2015-08-26 19:29:07 +00:00
options-include.cc Fix PR26608: Make sanitizer_common tests more portable. 2016-02-17 21:00:50 +00:00
options-invalid.cc [Sanitizer] Test churn: use %env_tool_opts in sanitizer_common lit tests. 2015-08-26 19:29:07 +00:00
print-stack-trace.cc [sanitizer-common] Use @LINE in test. 2016-03-07 13:44:20 +00:00
pthread_mutexattr_get.cc Remove ARM XFAIL from passing test 2014-06-24 16:58:59 +00:00
strcasestr.c [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, strpbrk. 2015-05-28 09:24:33 +00:00
strcspn.c [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, strpbrk. 2015-05-28 09:24:33 +00:00
strnlen.c [sanitizer] Add strnlen to the common interceptors 2016-03-23 21:24:28 +00:00
strpbrk.c [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, strpbrk. 2015-05-28 09:24:33 +00:00
strspn.c [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, strpbrk. 2015-05-28 09:24:33 +00:00
strstr.c [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, strpbrk. 2015-05-28 09:24:33 +00:00