[compiler-rt] r219906 - Adds stable-runtime to ubsan to avoid broken ARM tests with asan

Renato Golin renato.golin at linaro.org
Thu Oct 16 00:48:27 PDT 2014


Author: rengolin
Date: Thu Oct 16 02:48:27 2014
New Revision: 219906

URL: http://llvm.org/viewvc/llvm-project?rev=219906&view=rev
Log:
Adds stable-runtime to ubsan to avoid broken ARM tests with asan

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp
    compiler-rt/trunk/test/ubsan/lit.common.cfg

Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp?rev=219906&r1=219905&r2=219906&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp Thu Oct 16 02:48:27 2014
@@ -25,6 +25,7 @@
 
 // FIXME: This test produces linker errors on Darwin.
 // XFAIL: darwin
+// REQUIRES: stable-runtime
 
 extern "C" {
 const char *__ubsan_default_options() {

Modified: compiler-rt/trunk/test/ubsan/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/lit.common.cfg?rev=219906&r1=219905&r2=219906&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan/lit.common.cfg Thu Oct 16 02:48:27 2014
@@ -50,3 +50,8 @@ config.suffixes = ['.c', '.cc', '.cpp']
 # Linux and Darwin only.
 if config.host_os not in ['Linux', 'Darwin']:
   config.unsupported = True
+
+# Allow tests to use REQUIRES=stable-runtime.  For use when you cannot use XFAIL
+# because the test hangs or fails on one configuration and not the other.
+if config.target_arch != 'arm':
+  config.available_features.add('stable-runtime')





More information about the llvm-commits mailing list