[ASan tests] Add Windows-specific flags to lib/asan/tests/CMakeLists.txt

Reviewed at http://reviews.llvm.org/D3720

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208682 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Mark several functions as possibly unused.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208686 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer tests] Fix most of the build problems on Windows

E.g. use the pthread helpers introduced in r208674

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208692 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Disable fopen64 interceptor on osx.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208693 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer/ASan tests] Automatically detect the presence of libstdc++

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208695 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional

Reviewed at http://reviews.llvm.org/D3744

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208696 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer tests] Land the sanitizer twin of the asan-only change r208682

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208697 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer tests] Exclude three tests that fail on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208698 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer tests] Define 16- and 64-bit versions of atomic_compare_exchange_strong on Windows

Reviewed at http://reviews.llvm.org/D3745

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208700 91177308-0d34-0410-b5e6-96231b3b80d8
Enable sanitizer tests (check-sanitizer, check-asan) on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208701 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Use internal_fork() to spawn the symbolizer process.
This should fix https://code.google.com/p/thread-sanitizer/issues/detail?id=61


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208707 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Fix the return type of internal_fork


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208714 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Build TSan-instrumented version of libcxx and use it in lit tests.

TSan can produce false positives in code that uses C++11 threading,
as it doesn't see synchronization inside standard library. See
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-February/035408.html
for an example of such case.

We may build custom TSan-instrumented version libcxx to fight with that.
This change adds build rules for libcxx_tsan and integrates it into
testing infrastructure.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208737 91177308-0d34-0410-b5e6-96231b3b80d8
Add %run to tests that used %T/name.exe

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208744 91177308-0d34-0410-b5e6-96231b3b80d8
Enable CAN_EXECUTE_TESTS if an EMULATOR is provided

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208745 91177308-0d34-0410-b5e6-96231b3b80d8
Add target flags to ubsan tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208746 91177308-0d34-0410-b5e6-96231b3b80d8
removed redundant lit variable

Thanks Alexey!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208747 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Move open_memstream test under Linux.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208755 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Respect personality in kernel area detector, patch by Yuri Gribov

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208760 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] tyring to fix the Android build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208763 91177308-0d34-0410-b5e6-96231b3b80d8