diff options
author | Dan Liew <dan@su-root.co.uk> | 2018-07-10 13:35:35 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2018-07-10 13:35:35 +0000 |
commit | 714d1a68b0258a0e2676d02eb3de98dbb7c503f1 (patch) | |
tree | ad6aeeee883cc181514baab64ce321a3e152e4f0 /test | |
parent | 03ff187676c405d5b6b4e50ccaf347f7d6f48ffd (diff) |
[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`.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/fuzzer/lit.cfg | 8 | ||||
-rw-r--r-- | test/fuzzer/msan.test | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/fuzzer/lit.cfg b/test/fuzzer/lit.cfg index cdd1d73d3..8a44860d4 100644 --- a/test/fuzzer/lit.cfg +++ b/test/fuzzer/lit.cfg @@ -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') diff --git a/test/fuzzer/msan.test b/test/fuzzer/msan.test index fd4b99ed5..d16a2514c 100644 --- a/test/fuzzer/msan.test +++ b/test/fuzzer/msan.test @@ -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 |