[compiler-rt] r241119 - [asan] Suppress read_binary_name_regtest.c test failure on unsupported hosts.

Alexander Potapenko glider at google.com
Wed Jul 1 03:17:01 PDT 2015


Thanks!

On Tue, Jun 30, 2015 at 11:28 PM, Evgeniy Stepanov
<eugeni.stepanov at gmail.com> wrote:
> Author: eugenis
> Date: Tue Jun 30 16:28:55 2015
> New Revision: 241119
>
> URL: http://llvm.org/viewvc/llvm-project?rev=241119&view=rev
> Log:
> [asan] Suppress read_binary_name_regtest.c test failure on unsupported hosts.
>
> read_binary_name_regtest.c requires seccomp kernel headers.
> Make the test pass if <linux/seccomp.h> is missing.
>
> Modified:
>     compiler-rt/trunk/test/asan/TestCases/Linux/read_binary_name_regtest.c
>
> Modified: compiler-rt/trunk/test/asan/TestCases/Linux/read_binary_name_regtest.c
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/read_binary_name_regtest.c?rev=241119&r1=241118&r2=241119&view=diff
> ==============================================================================
> --- compiler-rt/trunk/test/asan/TestCases/Linux/read_binary_name_regtest.c (original)
> +++ compiler-rt/trunk/test/asan/TestCases/Linux/read_binary_name_regtest.c Tue Jun 30 16:28:55 2015
> @@ -1,8 +1,10 @@
>  // Regression test for https://crbug.com/502974, where ASan was unable to read
>  // the binary name because of sandbox restrictions.
>  // This test uses seccomp-BPF to restrict the readlink() system call and makes
> -// sure ASan is still able to
> -// RUN: %clang_asan %s -o %t && not %run %t 2>&1 | FileCheck %s
> +// sure ASan is still able to
> +// RUN: not ls /usr/include/linux/seccomp.h || ( %clang_asan %s -o %t && not %run %t 2>&1 | FileCheck %s )
> +// UNSUPPORTED: android
> +
>  #include <errno.h>
>  #include <stddef.h>
>  #include <stdlib.h>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Dienerstraße 12
80331 München




More information about the llvm-commits mailing list