summaryrefslogtreecommitdiff
path: root/test/cfi
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-06 20:51:51 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-06 20:51:51 +0000
commite9b56a34017060f38e481ae24a23acf43043fb4f (patch)
tree7119aa58b60a32fbdc9382574db96b44ce288d39 /test/cfi
parentb3c632084941e7b9669416f91c7f90b7fcd49645 (diff)
[sanitizer] Test ubsan and cfi on android.
Summary: Enable check-cfi and check-ubsan on Android. Check-ubsan includes standalone and ubsan+asan, but not tsan or msan. Cross-dso cfi tests are disabled for now. Reviewers: vitalybuka, pcc Subscribers: srhines, kubamracek, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D38608 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi')
-rw-r--r--test/cfi/cross-dso/lit.local.cfg2
-rw-r--r--test/cfi/lit.cfg4
-rw-r--r--test/cfi/stats.cpp3
3 files changed, 6 insertions, 3 deletions
diff --git a/test/cfi/cross-dso/lit.local.cfg b/test/cfi/cross-dso/lit.local.cfg
index 57271b807..4fd9b2852 100644
--- a/test/cfi/cross-dso/lit.local.cfg
+++ b/test/cfi/cross-dso/lit.local.cfg
@@ -5,5 +5,5 @@ def getRoot(config):
root = getRoot(config)
-if root.host_os not in ['Linux']:
+if root.host_os not in ['Linux'] or config.android:
config.unsupported = True
diff --git a/test/cfi/lit.cfg b/test/cfi/lit.cfg
index 76cafb855..c2102f08b 100644
--- a/test/cfi/lit.cfg
+++ b/test/cfi/lit.cfg
@@ -5,8 +5,8 @@ config.name = 'cfi' + config.name_suffix
config.suffixes = ['.c', '.cpp', '.test']
config.test_source_root = os.path.dirname(__file__)
-clang = ' '.join([config.clang, config.target_cflags])
-clangxx = ' '.join([config.clang, config.target_cflags] + config.cxx_mode_flags)
+clang = ' '.join([config.compile_wrapper, config.clang, config.target_cflags])
+clangxx = ' '.join([config.compile_wrapper, config.clang, config.target_cflags] + config.cxx_mode_flags)
config.substitutions.append((r"%clang ", clang + ' '))
config.substitutions.append((r"%clangxx ", clangxx + ' '))
diff --git a/test/cfi/stats.cpp b/test/cfi/stats.cpp
index eb0c2ed95..56cc2dd51 100644
--- a/test/cfi/stats.cpp
+++ b/test/cfi/stats.cpp
@@ -5,6 +5,9 @@
// FIXME: We currently emit the wrong debug info under devirtualization.
// UNSUPPORTED: devirt
+// FIXME: %t.stats must be transferred from device to host for this to work on Android.
+// XFAIL: android
+
struct ABase {};
struct A : ABase {