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

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 06:35:36 PDT 2018


Author: delcypher
Date: Tue Jul 10 06:35:35 2018
New Revision: 336669

URL: http://llvm.org/viewvc/llvm-project?rev=336669&view=rev
Log:
[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`.

Modified:
    compiler-rt/trunk/test/fuzzer/lit.cfg
    compiler-rt/trunk/test/fuzzer/msan.test

Modified: compiler-rt/trunk/test/fuzzer/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/lit.cfg?rev=336669&r1=336668&r2=336669&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/lit.cfg (original)
+++ compiler-rt/trunk/test/fuzzer/lit.cfg Tue Jul 10 06:35:35 2018
@@ -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')
 

Modified: compiler-rt/trunk/test/fuzzer/msan.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/msan.test?rev=336669&r1=336668&r2=336669&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/msan.test (original)
+++ compiler-rt/trunk/test/fuzzer/msan.test Tue Jul 10 06:35:35 2018
@@ -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
 




More information about the llvm-commits mailing list