summaryrefslogtreecommitdiff
path: root/fuzz/host_command_fuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/host_command_fuzz.c')
-rw-r--r--fuzz/host_command_fuzz.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fuzz/host_command_fuzz.c b/fuzz/host_command_fuzz.c
index 4ca94ff616..01a5818b63 100644
--- a/fuzz/host_command_fuzz.c
+++ b/fuzz/host_command_fuzz.c
@@ -12,6 +12,7 @@
#include "console.h"
#include "host_command.h"
#include "host_test.h"
+#include "mock/fp_sensor_mock.h"
#include "task.h"
#include "test_util.h"
#include "timer.h"
@@ -134,6 +135,8 @@ static pthread_mutex_t lock;
void run_test(int argc, char **argv)
{
ccprints("Fuzzing task started");
+ /* Set the fingerprint driver to the mock to test fp_task. */
+ fp_driver = &fp_driver_mock;
wait_for_task_started();
while (1) {