From 52b9af5fd9e5782c92310427bfeb4755fce6323f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Fri, 10 Mar 2023 12:11:11 +0100 Subject: [PATCH] fuzzing: do not build tests if build_tests is false --- fuzzing/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzing/meson.build b/fuzzing/meson.build index e39ecdce5..cd1e4c762 100644 --- a/fuzzing/meson.build +++ b/fuzzing/meson.build @@ -67,7 +67,7 @@ foreach target_name : fuzz_targets # If the FuzzingEngine isn’t available, build some unit tests to check that # the fuzzing files do basically work. This doesn’t 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',