diff options
-rw-r--r-- | test/xray/TestCases/Linux/patching-unpatching.cc | 1 | ||||
-rw-r--r-- | test/xray/lit.cfg | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/xray/TestCases/Linux/patching-unpatching.cc b/test/xray/TestCases/Linux/patching-unpatching.cc index 05478a488..e684e427f 100644 --- a/test/xray/TestCases/Linux/patching-unpatching.cc +++ b/test/xray/TestCases/Linux/patching-unpatching.cc @@ -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" diff --git a/test/xray/lit.cfg b/test/xray/lit.cfg index 04e21f1c4..5d030e101 100644 --- a/test/xray/lit.cfg +++ b/test/xray/lit.cfg @@ -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') |