[LibFuzzer] Disable MSan test on Darwin which was added by r336619. The MemorySanitizer is

not supported on Darwin currently and so Clang refuses to compile with
`-fsanitize=memory`.

llvm-svn: 336669
This commit is contained in:
Dan Liew 2018-07-10 13:35:35 +00:00
parent 06ea4206ad
commit 9af77974e2
2 changed files with 9 additions and 0 deletions

View File

@ -31,6 +31,14 @@ else:
lit_config.note('lsan feature available')
config.available_features.add('lsan')
# MemorySanitizer is not supported on OSX right now
if sys.platform.startswith('darwin'):
lit_config.note('msan feature unavailable')
assert 'msan' not in config.available_features
else:
lit_config.note('msan feature available')
config.available_features.add('msan')
if sys.platform.startswith('win') or sys.platform.startswith('cygwin'):
config.available_features.add('windows')

View File

@ -1,3 +1,4 @@
REQUIRES: msan
RUN: %msan_compiler %S/SimpleTest.cpp -o %t
RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s --check-prefix=NO-REPORT