oss-fuzz: try fixing build

This commit is contained in:
Marius van der Wijden 2023-10-17 11:26:14 +02:00
parent 0c8e75203e
commit a441e304d9

View file

@ -74,8 +74,8 @@ function compile_fuzzer() {
go install github.com/AdamKorcz/go-118-fuzz-build@latest go install github.com/AdamKorcz/go-118-fuzz-build@latest
go get github.com/AdamKorcz/go-118-fuzz-build/testing go get github.com/AdamKorcz/go-118-fuzz-build/testing
# Test if file contains a line with "func $function" and "testing.F". # Test if file contains a line with "func $function(" and "testing.F".
if [ $(grep -r "func $function" $path | grep "testing.F" | wc -l) -eq 1 ] if [ $(grep -r "func $function(" $path | grep "testing.F" | wc -l) -eq 1 ]
then then
build_native_go_fuzzer $fuzzer $function $path build_native_go_fuzzer $fuzzer $function $path
else else