From f35aaa1577019472f1a913e836bd801c4deddb9f Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Mon, 4 Sep 2023 15:03:46 +0800 Subject: [PATCH] fix: Mock tests include idf_additions.h A number of IDF specific FreeRTOS API additions will be moved to `#include "freertos/idf_additions.h". Mock tests need to include these to properly use them as mock functions. --- host_test/main/test_mqtt_client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/host_test/main/test_mqtt_client.cpp b/host_test/main/test_mqtt_client.cpp index fb57bc0..116a609 100644 --- a/host_test/main/test_mqtt_client.cpp +++ b/host_test/main/test_mqtt_client.cpp @@ -24,6 +24,10 @@ extern "C" { #include "Mockhttp_parser.h" #include "Mockqueue.h" #include "Mocktask.h" +#if __has_include ("Mockidf_additions.h") +/* Some functions were moved from "task.h" to "idf_additions.h" */ +#include "Mockidf_additions.h" +#endif #include "Mockesp_timer.h" /*