Remove a check from strerror_r test.

It's not always true: on Android, strerror_r with invalid errno
prints "Unknown error ..." to the buffer and returns 0.

This test now only checks that strerror_r does not crash.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201321 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] address some of the dvyukov's comments on previous commits

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201322 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix null_deref test with zero base shadow.

With zero base shadow, shadow for near-zero access is itself at near-zero
location. As a result, this test crashes on the shadow access, and not on the
app access.

Relax a check to match this behavior.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201324 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix off-by-one-line in SEGV reports on Android.

This will be covered by null_deref.cc test (requires one more fix to pass).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201325 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Enable SEGV handler on Android by default.

Seems stable enough.
Fixes null_deref.cc test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201326 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Enable signal and sigaction interceptors on Android.

Fixes AddressSanitizer.SignalTest breakage.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201330 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Remove extra clone() arguments in test.

Android headers define clone() as a 4-argument function without ellipsis.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201331 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Disable 1 test on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201332 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] optimize TwoLevelBitVector::intersectsWith, extend tests, fix a check

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201338 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] replace MostSignificantSetBitIndex with LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201339 91177308-0d34-0410-b5e6-96231b3b80d8
Move BlocksRuntime to lib/ directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201390 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Create SanitizerCommonDecorator which provides the Warning() and EndWarning() methods
(needed for SEGV handling in sanitizer_common)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201392 91177308-0d34-0410-b5e6-96231b3b80d8
Move original compiler-rt functions (libgcc replacement) to lib/builtins directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201393 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Android test runner for ASan lit tests.

This change replaces 32- and 64- bit config.in-s with a single config template
that is used to generate both 32 and 64 bits configs as well as the new
arm-android config. Arm-android config is special because it can run tests on
a remote device over adb (android debug bridge). 

We replace %clang with a script that run the compiler, upload the result to
the device, and replaces it with another script. The second script runs the
binary on the device and delivers stdout/stderr/exitcode back.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201394 91177308-0d34-0410-b5e6-96231b3b80d8
Move tests for BlocksRuntime and builtins to corresponding directories under test/

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201396 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Replicate mmap-below-shadow check in mmap64 interceptor.


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

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