From: Matt Corallo Date: Tue, 9 Jul 2024 21:01:36 +0000 (+0000) Subject: Fix fuzz test build X-Git-Tag: v0.5.5~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=9824d14a34b6340b95fa4f729202cbd853e9eeb3;p=dnssec-prover Fix fuzz test build --- diff --git a/fuzz/src/parse_stream_validate.rs b/fuzz/src/parse_stream_validate.rs index 301a50c..f0a1083 100644 --- a/fuzz/src/parse_stream_validate.rs +++ b/fuzz/src/parse_stream_validate.rs @@ -67,7 +67,7 @@ fn run_test_cases() { let path = test.unwrap().path(); fs::File::open(&path).unwrap().read_to_end(&mut data).unwrap(); - let _ = parse_rr_stream(data).as_ref() + let _ = parse_rr_stream(&data).as_ref() .map(|rrs| verify_rr_stream(rrs)); } } diff --git a/test.sh b/test.sh index e2f7039..0ffe705 100755 --- a/test.sh +++ b/test.sh @@ -24,5 +24,6 @@ cargo build --bin http_proof_gen --features build_server cargo doc --features std,tokio,validation cd fuzz RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" RUSTC_BOOTSTRAP=1 cargo build --features stdin_fuzz +RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" RUSTC_BOOTSTRAP=1 cargo test cd ../bench RUSTFLAGS="$RUSTFLAGS --cfg=dnssec_validate_bench" cargo bench