[llvm-commits] [compiler-rt] r148234 - /compiler-rt/trunk/lib/asan/tests/asan_test.cc

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Jan 16 04:19:51 PST 2012


Author: eugenis
Date: Mon Jan 16 06:19:51 2012
New Revision: 148234

URL: http://llvm.org/viewvc/llvm-project?rev=148234&view=rev
Log:
Disable posix_memalign test on Android.

Modified:
    compiler-rt/trunk/lib/asan/tests/asan_test.cc

Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=148234&r1=148233&r2=148234&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Mon Jan 16 06:19:51 2012
@@ -172,13 +172,15 @@
   *c = 0;
   delete c;
 
-#ifndef __APPLE__
+#if !defined(__APPLE__) && !defined(ANDROID)
   // fprintf(stderr, "posix_memalign\n");
   int *pm;
   int pm_res = posix_memalign((void**)&pm, kPageSize, kPageSize);
   EXPECT_EQ(0, pm_res);
   free(pm);
+#endif
 
+#if !defined(APPLE)
   int *ma = (int*)memalign(kPageSize, kPageSize);
   EXPECT_EQ(0, (uintptr_t)ma % kPageSize);
   ma[123] = 0;





More information about the llvm-commits mailing list