[XRay][AArch64] Disable the unstable test XRay-aarch64-linux::patching-unpatching.cc
authorSerge Rogatch <srogatch@accesssoftek.com>
Wed, 7 Dec 2016 22:00:02 +0000 (22:00 +0000)
committerSerge Rogatch <srogatch@accesssoftek.com>
Wed, 7 Dec 2016 22:00:02 +0000 (22:00 +0000)
Summary:
The test `XRay-aarch64-linux::patching-unpatching.cc` sometimes passes, sometimes fails on buildbots.
This patch disables test `patching-unpatching.cc` for AArch64 targets.

Reviewers: rengolin, dberris

Subscribers: llvm-commits, iid_iunknown, aemerson

Differential Revision: https://reviews.llvm.org/D27528

llvm-svn: 288988

compiler-rt/test/xray/TestCases/Linux/patching-unpatching.cc
compiler-rt/test/xray/lit.cfg

index 05478a4..e684e42 100644 (file)
@@ -3,6 +3,7 @@
 //
 // RUN: %clangxx_xray -fxray-instrument -std=c++11 %s -o %t
 // RUN: XRAY_OPTIONS="patch_premain=false" %run %t 2>&1 | FileCheck %s
+// REQUIRES: stable-runtime
 
 #include "xray/xray_interface.h"
 
index 04e21f1..5d030e1 100644 (file)
@@ -32,3 +32,8 @@ config.suffixes = ['.c', '.cc', '.cpp']
 
 if config.host_os not in ['Linux'] or config.host_arch.find('64') == -1:
   config.unsupported = True
+
+# Allow tests to use REQUIRES=stable-runtime.  For use when you cannot use XFAIL
+# e.g. because the test sometimes passes, sometimes fails.
+if config.target_arch != 'aarch64':
+  config.available_features.add('stable-runtime')