fuzzing: do not build tests if build_tests is false

This commit is contained in:
Stéphane Cerveau 2023-03-10 12:11:11 +01:00
parent d9a01931c3
commit 52b9af5fd9

View File

@ -67,7 +67,7 @@ foreach target_name : fuzz_targets
# If the FuzzingEngine isnt available, build some unit tests to check that
# the fuzzing files do basically work. This doesnt do any actual fuzzing though.
# Pass in the README as an arbitrary fuzzing input, just so we have something.
if not have_fuzzing_engine
if build_tests and not have_fuzzing_engine
test(target_name, exe,
args : files('README.md'),
suite : 'fuzzing',