[compiler-rt] r218312 - [asan] Fix one test on Android-L.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Sep 23 08:42:04 PDT 2014
Author: eugenis
Date: Tue Sep 23 10:42:04 2014
New Revision: 218312
URL: http://llvm.org/viewvc/llvm-project?rev=218312&view=rev
Log:
[asan] Fix one test on Android-L.
index() is deprecated.
Modified:
compiler-rt/trunk/lib/asan/tests/asan_str_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_str_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_str_test.cc?rev=218312&r1=218311&r2=218312&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_str_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_str_test.cc Tue Sep 23 10:42:04 2014
@@ -221,7 +221,8 @@ UNUSED static void RunStrChrTest(Pointer
TEST(AddressSanitizer, StrChrAndIndexOOBTest) {
RunStrChrTest(&strchr);
-#if !defined(_WIN32) // no index() on Windows.
+// No index() on Windows and on Android L.
+#if !defined(_WIN32) && !defined(__ANDROID__)
RunStrChrTest(&index);
#endif
}
More information about the llvm-commits
mailing list