[compiler-rt] r180093 - [ASan] Disable AddressSanitizer.AllocDeallocMismatch on Darwin.

Alexander Potapenko glider at google.com
Tue Apr 23 05:50:01 PDT 2013


We do not include sanitizer_platform.h into sanitizer_test_utils.h
right now, but we sure can.

On Tue, Apr 23, 2013 at 4:35 PM, Kostya Serebryany <kcc at google.com> wrote:
> Can we use guards like SANITIZER_ANDROID in the tests?
>
>
> On Tue, Apr 23, 2013 at 5:14 AM, Alexander Potapenko <glider at google.com>
> wrote:
>>
>> Author: glider
>> Date: Tue Apr 23 07:14:55 2013
>> New Revision: 180093
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=180093&view=rev
>> Log:
>> [ASan] Disable AddressSanitizer.AllocDeallocMismatch on Darwin.
>> See https://code.google.com/p/address-sanitizer/issues/detail?id=131.
>>
>> 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=180093&r1=180092&r2=180093&view=diff
>>
>> ==============================================================================
>> --- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
>> +++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Tue Apr 23 07:14:55 2013
>> @@ -1082,7 +1082,9 @@ TEST(AddressSanitizer, AttributeNoAddres
>>  }
>>
>>  // It doesn't work on Android, as calls to new/delete go through
>> malloc/free.
>> -#if !defined(ANDROID) && !defined(__ANDROID__)
>> +// Neither it does on OS X, see
>> +// https://code.google.com/p/address-sanitizer/issues/detail?id=131.
>> +#if !defined(ANDROID) && !defined(__ANDROID__) && !defined(__APPLE__)
>>  static string MismatchStr(const string &str) {
>>    return string("AddressSanitizer: alloc-dealloc-mismatch \\(") + str;
>>  }
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>



-- 
Alexander Potapenko
Software Engineer
Google Moscow



More information about the llvm-commits mailing list