[PATCH] D20894: [LibFuzzer] Disable compiling and running the LibFuzzer dataflow sanitizer tests on Apple platforms.
Dan Liew via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 22:54:51 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL271492: [LibFuzzer] Disable compiling and running the LibFuzzer dataflow sanitizer… (authored by delcypher).
Changed prior to commit:
http://reviews.llvm.org/D20894?vs=59330&id=59338#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20894
Files:
llvm/trunk/lib/Fuzzer/test/CMakeLists.txt
llvm/trunk/lib/Fuzzer/test/fuzzer-dfsan.test
llvm/trunk/lib/Fuzzer/test/lit.cfg
llvm/trunk/lib/Fuzzer/test/lit.site.cfg.in
Index: llvm/trunk/lib/Fuzzer/test/lit.site.cfg.in
===================================================================
--- llvm/trunk/lib/Fuzzer/test/lit.site.cfg.in
+++ llvm/trunk/lib/Fuzzer/test/lit.site.cfg.in
@@ -1,3 +1,4 @@
config.test_exec_root = "@CMAKE_CURRENT_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
+config.has_dfsan = True if @HAS_DFSAN@ == 1 else False
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")
Index: llvm/trunk/lib/Fuzzer/test/lit.cfg
===================================================================
--- llvm/trunk/lib/Fuzzer/test/lit.cfg
+++ llvm/trunk/lib/Fuzzer/test/lit.cfg
@@ -13,3 +13,9 @@
config.environment['PATH']))
config.environment['PATH'] = path
+if config.has_dfsan:
+ lit_config.note('dfsan feature available')
+ config.available_features.add('dfsan')
+else:
+ lit_config.note('dfsan feature unavailable')
+
Index: llvm/trunk/lib/Fuzzer/test/CMakeLists.txt
===================================================================
--- llvm/trunk/lib/Fuzzer/test/CMakeLists.txt
+++ llvm/trunk/lib/Fuzzer/test/CMakeLists.txt
@@ -126,7 +126,17 @@
###############################################################################
include_directories(..)
-add_subdirectory(dfsan)
+
+if(APPLE)
+ message(WARNING "Dataflow sanitizer is not supported on Apple platforms."
+ " Building and running LibFuzzer dataflow sanitizer tests is disabled."
+ )
+ set(HAS_DFSAN 0)
+else()
+ set(HAS_DFSAN 1)
+ add_subdirectory(dfsan)
+endif()
+
add_subdirectory(uninstrumented)
add_subdirectory(ubsan)
add_subdirectory(trace-bb)
Index: llvm/trunk/lib/Fuzzer/test/fuzzer-dfsan.test
===================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer-dfsan.test
+++ llvm/trunk/lib/Fuzzer/test/fuzzer-dfsan.test
@@ -1,3 +1,4 @@
+REQUIRES: dfsan
CHECK1: BINGO
CHECK2: BINGO
CHECK3: BINGO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20894.59338.patch
Type: text/x-patch
Size: 1927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160602/299cbbfc/attachment.bin>
More information about the llvm-commits
mailing list