Port the variadic std::tr1::tuple hack for building gtest for MSVC2012 to ASAN tests.

Summary: This is copied from llvm/utils/unittest/CMakeLists.txt.

Test Plan: This partly enables building ASAN tests with MSVC2012.

Reviewers: timurrrr

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5342

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217762 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid calling strtoll and atoll in asan_str_test.cc on Windows for now

Summary:
These two functions are unavailable on MSVC2012, which breaks building the
ASAN tests with MSVC2012.  Since the tests required to run these functions
are disabled on Windows for now, avoid building them to fix the MSVC2012
builds.

Test Plan: This is needed in order to fix building the ASAN tests with MSVC2012.

Reviewers: timurrrr

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5343

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217763 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Delay system log initialization on Android.

Writing to system log requires libc interceptors to be initialized.
Fixes crashes with verbosity=1 on newer Android builds.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217764 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix a flaky test.

This test has a chance to hit some other random allocation
and get neither heap overflow nor SEGV.

Relax test condition to only check that there is no internal CHECK failure.


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