diff options
author | Dan Albert <danalbert@google.com> | 2014-06-14 00:50:03 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-06-14 00:50:03 +0000 |
commit | 67eb177e0857e7d9956937dd8e3134e72e5c36b7 (patch) | |
tree | 4042c12e46cb6ebb63cb0760bc103bd060d26043 /lib/asan/tests/asan_test.cc | |
parent | 55c24f680c3d9d16327241211ec9f5a4782bb3fc (diff) |
Exclude Android from the tests for valloc/pvalloc.
These functions are being removed from Android because they were removed
from POSIX 2004.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/tests/asan_test.cc')
-rw-r--r-- | lib/asan/tests/asan_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asan/tests/asan_test.cc b/lib/asan/tests/asan_test.cc index 7597a5d2b..d36bcac7d 100644 --- a/lib/asan/tests/asan_test.cc +++ b/lib/asan/tests/asan_test.cc @@ -116,7 +116,8 @@ TEST(AddressSanitizer, CallocReturnsZeroMem) { } } -#if !defined(_WIN32) // No valloc on Windows. +// No valloc on Windows or Android. +#if !defined(_WIN32) && !defined(ANDROID) && !defined(__ANDROID__) TEST(AddressSanitizer, VallocTest) { void *a = valloc(100); EXPECT_EQ(0U, (uintptr_t)a % kPageSize); |