mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-19 22:53:52 +00:00
[libFuzzer] Include FuzzedDataProvider.h in the test without "utils" subdir.
Summary: This way the test would better match the intended usage of the header, plus it makes some additional testing (e.g. in CI) a bit easier to set up. Reviewers: morehouse Reviewed By: morehouse Subscribers: mgorny, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D64440 llvm-svn: 365544
This commit is contained in:
parent
3dbd7e98d8
commit
2d73994046
@ -75,6 +75,8 @@ if(COMPILER_RT_DEFAULT_TARGET_ARCH IN_LIST FUZZER_SUPPORTED_ARCH)
|
||||
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}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user