[compiler-rt] r241119 - [asan] Suppress read_binary_name_regtest.c test failure on unsupported hosts.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Jun 30 14:28:56 PDT 2015
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>
More information about the llvm-commits
mailing list