From 78d0c3795e9a90a9f99178e38346a53d9b2ebe57 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 19:14:45 +0530 Subject: Add test_mint_health: 14 host unit tests for mint health module Tests: init, get_all, initial state, is_reachable, mark_unreachable, overflow handling, empty init, callback registration, reinit, start/stop. Adds freertos/semphr.h stub and pdTRUE to FreeRTOS.h stub. --- tests/unit/stubs/freertos/FreeRTOS.h | 1 + tests/unit/stubs/freertos/semphr.h | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/unit/stubs/freertos/semphr.h (limited to 'tests/unit/stubs') diff --git a/tests/unit/stubs/freertos/FreeRTOS.h b/tests/unit/stubs/freertos/FreeRTOS.h index 696da87..2d2b967 100644 --- a/tests/unit/stubs/freertos/FreeRTOS.h +++ b/tests/unit/stubs/freertos/FreeRTOS.h @@ -8,5 +8,6 @@ static inline void vTaskDelay(uint32_t ticks) { (void)ticks; } #define pdMS_TO_TICKS(ms) ((ms) / 10) #define portTICK_PERIOD_MS 10 #define portMAX_DELAY 0xFFFFFFFF +#define pdTRUE 1 #endif diff --git a/tests/unit/stubs/freertos/semphr.h b/tests/unit/stubs/freertos/semphr.h new file mode 100644 index 0000000..0389b11 --- /dev/null +++ b/tests/unit/stubs/freertos/semphr.h @@ -0,0 +1,7 @@ +#ifndef STUBS_FREERTOS_SEMPHR_H +#define STUBS_FREERTOS_SEMPHR_H + +#include "FreeRTOS.h" +#include "task.h" + +#endif -- cgit v1.2.3