]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] Disable afl tests for Windows.
authorMarcos Pividori <mpividori@google.com>
Sun, 22 Jan 2017 01:26:18 +0000 (01:26 +0000)
committerMarcos Pividori <mpividori@google.com>
Sun, 22 Jan 2017 01:26:18 +0000 (01:26 +0000)
On Windows, we don't have interoperability between libFuzzer and afl.

Differential Revision: https://reviews.llvm.org/D28355

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/test/no-coverage/CMakeLists.txt

index d2f6f438ad79d85ecda0d8053231a509c4b97cb0..9cbe65c6719d935fb8cc3b021651817b63a35638 100644 (file)
@@ -16,14 +16,15 @@ endforeach()
 ###############################################################################
 # AFL Driver test
 ###############################################################################
-
-add_executable(AFLDriverTest
-  ../AFLDriverTest.cpp ../../afl/afl_driver.cpp)
-
-set_target_properties(AFLDriverTest
-    PROPERTIES RUNTIME_OUTPUT_DIRECTORY
-    "${CMAKE_BINARY_DIR}/lib/Fuzzer/test"
-    )
-
-# Propagate value into parent directory
-set(TestBinaries ${TestBinaries} AFLDriverTest PARENT_SCOPE)
+if(NOT MSVC)
+  add_executable(AFLDriverTest
+    ../AFLDriverTest.cpp ../../afl/afl_driver.cpp)
+
+  set_target_properties(AFLDriverTest
+      PROPERTIES RUNTIME_OUTPUT_DIRECTORY
+      "${CMAKE_BINARY_DIR}/lib/Fuzzer/test"
+      )
+
+  # Propagate value into parent directory
+  set(TestBinaries ${TestBinaries} AFLDriverTest PARENT_SCOPE)
+endif()