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

Kostya Serebryany kcc at google.com
Tue Apr 23 05:35:38 PDT 2013


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130423/31aae310/attachment.html>


More information about the llvm-commits mailing list