diff --git a/test_host/mocks/freertos/FreeRTOS.h b/test_host/mocks/freertos/FreeRTOS.h index ddff0dc2..7ac205c7 100644 --- a/test_host/mocks/freertos/FreeRTOS.h +++ b/test_host/mocks/freertos/FreeRTOS.h @@ -2,13 +2,13 @@ // Minimal FreeRTOS type definitions for host testing +#include +#include + #ifdef __cplusplus extern "C" { #endif -#include -#include - typedef void* TaskHandle_t; typedef void* QueueHandle_t; typedef void* SemaphoreHandle_t; diff --git a/test_host/mocks/sys/stat.h b/test_host/mocks/sys/stat.h index a5447d66..1e974a6d 100644 --- a/test_host/mocks/sys/stat.h +++ b/test_host/mocks/sys/stat.h @@ -1,20 +1,5 @@ #pragma once -#ifdef __cplusplus -extern "C" { -#endif - -#include - -struct stat { - uint64_t st_size; - uint32_t st_mode; - uint32_t st_mtime; -}; - -inline int stat(const char* path, struct stat* buf) { return -1; } -inline int remove(const char* path) { return -1; } - -#ifdef __cplusplus -} -#endif +// Host persistence tests write real files. Use the host ABI and errno rather +// than a fake stat() that always fails and leaves errno from an earlier call. +#include_next