llvm-project/compiler-rt/test
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
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [sancov] updaing android test after enabling cc edge pruning 2016-04-07 20:21:21 +00:00
builtins Add a generic version of __divtc3.c for long double complex division. 2015-11-22 19:13:49 +00:00
cfi [tests] Don't compile CFI C tests in C++ mode. 2016-02-24 00:16:57 +00:00
dfsan [DFSan] Fix test_inet_pton for big endian archs 2016-03-09 08:00:37 +00:00
lsan [LSan] Enable use_registers test for MIPS 2016-03-03 05:05:20 +00:00
msan [sancov] enabling coverage edge pruning by default. 2016-04-06 23:24:16 +00:00
profile [profile] Remove quotes around env variable, NFC 2016-03-30 04:36:10 +00:00
safestack Ensure safestack overflow test doesn't segfault 2016-01-07 22:19:12 +00:00
sanitizer_common [sanitizer] Fix sem_init_glibc.cc test on __HAVE_64B_ATOMIC arches. 2016-04-07 20:26:28 +00:00
tsan [tsan] Remove long sleeps from fork tests 2016-04-07 12:10:28 +00:00
ubsan [sancov] enabling coverage edge pruning by default. 2016-04-06 23:24:16 +00:00
CMakeLists.txt Another place for CMAKE_HOST_UNIX 2016-04-06 23:18:09 +00:00
lit.common.cfg [asan] Mark the initialization-bug.cc unsupported on OS X Yosemite and older 2016-03-30 22:21:58 +00:00
lit.common.configured.in [tests] Remove "supported-target" in favor of "target-arch" lit features. 2016-02-23 01:58:56 +00:00