diff options
| author | eunhhu <[email protected]> | 2026-09-24 17:50:28 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-24 17:50:28 +0100 |
| commit | c63d70d535be7cf4b8c0a5739a7e623e51d2ebf0 (patch) | |
| tree | 226611da0028e3bcd6f17f8615504ec32cb4a303 /prototypes/connections/test-paged-store.c | |
| parent | 4525124c01cc4c4ee335b0a430354a235a6539e0 (diff) | |
| download | pure-c63d70d535be7cf4b8c0a5739a7e623e51d2ebf0.tar.gz pure-c63d70d535be7cf4b8c0a5739a7e623e51d2ebf0.zip | |
Verify paged document app under 4 KiB AArch64 kernel
Diffstat (limited to 'prototypes/connections/test-paged-store.c')
| -rw-r--r-- | prototypes/connections/test-paged-store.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |
