forked from OSchip/llvm-project
[sanitizer_common tests] Make Darwin a Posix system and bring the stable-runtime definition from ASan tests.
Summary: This is an initial setup in order to move some additional tests from Linux onto Posix. I also moved decorate_proc_maps onto the Linux directory Finally added msan's definition for "stable-runtime". Only a test requires it, and its commit message (r248014) seems to imply that AArch64 is problematic with MSan. Reviewers: samsonov, rengolin, t.p.northover, eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17928 llvm-svn: 263142
This commit is contained in:
parent
00e2dcec02
commit
cf36b5fd32
|
@ -32,3 +32,6 @@ config.suffixes = ['.c', '.cc', '.cpp']
|
|||
# MemorySanitizer tests are currently supported on Linux only.
|
||||
if config.host_os not in ['Linux']:
|
||||
config.unsupported = True
|
||||
|
||||
if config.target_arch != 'aarch64':
|
||||
config.available_features.add('stable-runtime')
|
||||
|
|
|
@ -5,5 +5,5 @@ def getRoot(config):
|
|||
|
||||
root = getRoot(config)
|
||||
|
||||
if root.host_os in ['Windows', 'Darwin']:
|
||||
if root.host_os in ['Windows']:
|
||||
config.unsupported = True
|
||||
|
|
|
@ -23,6 +23,9 @@ else:
|
|||
|
||||
config.available_features.add(config.tool_name)
|
||||
|
||||
if config.target_arch not in ['arm', 'armhf', 'aarch64']:
|
||||
config.available_features.add('stable-runtime')
|
||||
|
||||
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'.
|
||||
|
|
Loading…
Reference in New Issue