[ASan] Skip ptrace test on non-x86 targets
authorJay Foad <jay.foad@gmail.com>
Wed, 12 Nov 2014 09:42:01 +0000 (09:42 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 12 Nov 2014 09:42:01 +0000 (09:42 +0000)
Summary:
Address sanitization of ptrace(2) is only implemented for x86, so skip
the test on other targets.

Reviewers: kcc, eugenis, earthdok, samsonov

Reviewed By: samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6215

llvm-svn: 221777

compiler-rt/test/asan/TestCases/Linux/ptrace.cc

index 926ff32..7e5acb6 100644 (file)
@@ -3,8 +3,7 @@
 //
 // RUN: %clangxx_asan -O0 %s -o %t && %run %t
 // RUN: %clangxx_asan -DPOSITIVE -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// XFAIL: arm-linux-gnueabi
-// XFAIL: armv7l-unknown-linux-gnueabihf
+// REQUIRES: x86_64-supported-target,i386-supported-target
 
 #include <assert.h>
 #include <stdio.h>