[PATCH] D64440: [libFuzzer] Include FuzzedDataProvider.h in the test without "utils" subdir.
Max Moroz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 12:28:25 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL365544: [libFuzzer] Include FuzzedDataProvider.h in the test without "utils" subdir. (authored by Dor1s, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64440/new/
https://reviews.llvm.org/D64440
Files:
compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
compiler-rt/trunk/lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp
Index: compiler-rt/trunk/lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp
===================================================================
--- compiler-rt/trunk/lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp
+++ compiler-rt/trunk/lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp
@@ -6,7 +6,7 @@
#include <cstdint>
#include <cstdlib>
-#include "utils/FuzzedDataProvider.h"
+#include "FuzzedDataProvider.h"
// The test is intentionally extensive, as behavior of |FuzzedDataProvider| must
// not be broken, given than many fuzz targets depend on it. Changing the
Index: compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
+++ compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
@@ -75,6 +75,8 @@
set_target_properties(FuzzerUnitTests PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+ list(APPEND LIBFUZZER_UNITTEST_CFLAGS -I${COMPILER_RT_SOURCE_DIR}/lib/fuzzer/utils)
+
set(FuzzedDataProviderTestObjects)
generate_compiler_rt_tests(FuzzedDataProviderTestObjects
FuzzedDataProviderUnitTests "FuzzerUtils-${arch}-Test" ${arch}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64440.208779.patch
Type: text/x-patch
Size: 1189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190709/103606f3/attachment.bin>
More information about the llvm-commits
mailing list