Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test_host/mocks/freertos/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

// Minimal FreeRTOS type definitions for host testing

#include <cstddef>
#include <cstdint>

#ifdef __cplusplus
extern "C" {
#endif

#include <cstddef>
#include <cstdint>

typedef void* TaskHandle_t;
typedef void* QueueHandle_t;
typedef void* SemaphoreHandle_t;
Expand Down
21 changes: 3 additions & 18 deletions test_host/mocks/sys/stat.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include <cstdint>

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 <sys/stat.h>
Loading