From c63d70d535be7cf4b8c0a5739a7e623e51d2ebf0 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Thu, 24 Sep 2026 17:50:28 +0100 Subject: Verify paged document app under 4 KiB AArch64 kernel --- prototypes/connections/test-paged-store.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'prototypes/connections/test-paged-store.c') diff --git a/prototypes/connections/test-paged-store.c b/prototypes/connections/test-paged-store.c index aed0539..aa867c6 100644 --- a/prototypes/connections/test-paged-store.c +++ b/prototypes/connections/test-paged-store.c @@ -165,7 +165,8 @@ static void mixed_edits(const char *path) { } int main(void) { - assert(sysconf(_SC_PAGESIZE) == PAGE); + long host_page = sysconf(_SC_PAGESIZE); + assert(host_page > 0 && PAGE % host_page == 0); char base[] = "/tmp/pure-page-store-XXXXXX"; assert(mkdtemp(base)); char path[256]; @@ -267,4 +268,5 @@ int main(void) { } assert(closedir(directory) == 0 && rmdir(path) == 0 && rmdir(base) == 0); puts("{\"hybrid_storage\":\"snapshot-patch-range-compaction-crash-conflict-uncertain-inline-transitions\",\"mixed_edits\":128}"); + return 0; } -- cgit v1.2.3