File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ jobs:
202
202
sudo apt-get update
203
203
sudo apt-get -y install build-essential binutils-dev libunwind-dev
204
204
- name : Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
205
- run : cd fuzz && cargo test --verbose --color always
205
+ run : cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose --color always
206
206
- name : Run fuzzers
207
207
run : cd fuzz && ./ci-fuzz.sh
208
208
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ for TARGET in src/bin/*.rs; do
27
27
HFUZZ_RUN_ARGS=" $HFUZZ_RUN_ARGS -N1000000"
28
28
fi
29
29
export HFUZZ_RUN_ARGS
30
+ export RUSTFLAGS=" --cfg=fuzzing"
30
31
HFUZZ_BUILD_ARGS=" --features honggfuzz_fuzz" cargo --color always hfuzz run $FILE
31
32
if [ -f hfuzz_workspace/$FILE /HONGGFUZZ.REPORT.TXT ]; then
32
33
cat hfuzz_workspace/$FILE /HONGGFUZZ.REPORT.TXT
You can’t perform that action at this time.
0 commit comments