From 2cac0ee49af612c518213a14022c6b0c08fb5e7b Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 14 Feb 2014 11:42:22 +0000 Subject: Move UBSan test suite under test/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201401 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1ab0cb522..b497550ea 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,3 +5,11 @@ configure_lit_site_cfg( # BlocksRuntime and builtins testsuites are not yet ported to lit. # add_subdirectory(BlocksRuntime) # add_subdirectory(builtins) + +# Run sanitizer tests only if we're sure that clang would produce +# working binaries. +if(COMPILER_RT_CAN_EXECUTE_TESTS) + if(UBSAN_SUPPORTED_ARCH) + add_subdirectory(ubsan) + endif() +endif() -- cgit v1.2.3