aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/connections/test-paged-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/connections/test-paged-store.c')
-rw-r--r--prototypes/connections/test-paged-store.c4
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;
}