summaryrefslogtreecommitdiff
path: root/test/ubsan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-06 20:53:40 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-10-06 20:53:40 +0000
commit8501b0e87655065c6668db3eac37ea08bd4f712f (patch)
tree97d7bd7f2a7a3236b602706cabf5b2dbbfe1ca36 /test/ubsan
parente9b56a34017060f38e481ae24a23acf43043fb4f (diff)
Factor out default_(a|ub)sanitizer_opts in lit.
Reviewers: vitalybuka Subscribers: srhines, llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D38644 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r--test/ubsan/lit.common.cfg9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/ubsan/lit.common.cfg b/test/ubsan/lit.common.cfg
index 8365194d8..718d66741 100644
--- a/test/ubsan/lit.common.cfg
+++ b/test/ubsan/lit.common.cfg
@@ -14,7 +14,7 @@ def get_required_attr(config, attr_name):
# Setup source root.
config.test_source_root = os.path.dirname(__file__)
-default_ubsan_opts = []
+default_ubsan_opts = list(config.default_sanitizer_opts)
# Choose between standalone and UBSan+ASan modes.
ubsan_lit_test_mode = get_required_attr(config, 'ubsan_lit_test_mode')
if ubsan_lit_test_mode == "Standalone":
@@ -41,13 +41,6 @@ else:
if config.target_arch == 's390x':
# On SystemZ we need -mbackchain to make the fast unwinder work.
clang_ubsan_cflags.append("-mbackchain")
-if config.host_os == 'Darwin':
- # On Darwin, we default to `abort_on_error=1`, which would make tests run
- # much slower. Let's override this and run lit tests with 'abort_on_error=0'.
- default_ubsan_opts += ['abort_on_error=0']
- default_ubsan_opts += ['log_to_syslog=0']
-elif config.android:
- default_ubsan_opts += ['abort_on_error=0']
default_ubsan_opts_str = ':'.join(default_ubsan_opts)
if default_ubsan_opts_str: