Files
mars-nwe/tests/nwnss/cachecontrol/test_nwnss_cachecontrol.c
Mario Fetka 0f82de2743
All checks were successful
Source release / source-package (push) Successful in 1m20s
0536 build: introduce libnwnss for imported NSS runtime
2026-06-14 22:34:04 +02:00

28 lines
546 B
C

#include <internal/cacheControl.h>
#include <stddef.h>
#include <string.h>
#define CHECK(expr) \
do { \
if (!(expr)) { \
return 1; \
} \
} while (0)
int main(void)
{
CacheControl_s cache;
memset(&cache, 0, sizeof(cache));
CHECK(sizeof(cache.waitQ) > 0);
CHECK(sizeof(cache.lruQDirty) > 0);
CHECK(sizeof(cache.giver.fsm) > 0);
CHECK(sizeof(cache.giver.alarm) > 0);
CHECK(offsetof(CacheControl_s, CC_HMCCacheTypeLatch) > 0);
CHECK(cache.isInitialized == 0);
return 0;
}