From 52a3b92abd3950c677c55880d58d128b9136e49a Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 7 Dec 2012 10:13:10 +0000 Subject: [PATCH] [sanitizer] try not to use libc mem* functions in sanitizer_common tests (conflicts with our own interceptors) llvm-svn: 169595 --- .../lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index e0b7207a8557..e20b1ca42574 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -404,7 +404,7 @@ TEST(Allocator, ScopedBuffer) { } InternalScopedBuffer char_buf(kSize); EXPECT_EQ(sizeof(char) * kSize, char_buf.size()); // NOLINT - memset(char_buf.data(), 'c', kSize); + internal_memset(char_buf.data(), 'c', kSize); for (int i = 0; i < kSize; i++) { EXPECT_EQ('c', char_buf[i]); }