From 9af77974e231550a81768f309f30cf0e05b29f71 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 10 Jul 2018 13:35:35 +0000 Subject: [PATCH] [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 --- compiler-rt/test/fuzzer/lit.cfg | 8 ++++++++ compiler-rt/test/fuzzer/msan.test | 1 + 2 files changed, 9 insertions(+) diff --git a/compiler-rt/test/fuzzer/lit.cfg b/compiler-rt/test/fuzzer/lit.cfg index cdd1d73d3c0c..8a44860d4a5d 100644 --- a/compiler-rt/test/fuzzer/lit.cfg +++ b/compiler-rt/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/compiler-rt/test/fuzzer/msan.test b/compiler-rt/test/fuzzer/msan.test index fd4b99ed50b5..d16a2514cbbb 100644 --- a/compiler-rt/test/fuzzer/msan.test +++ b/compiler-rt/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