aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/connections/test-splice.c
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/connections/test-splice.c')
-rw-r--r--prototypes/connections/test-splice.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/prototypes/connections/test-splice.c b/prototypes/connections/test-splice.c
index bf3c0a9..51970d3 100644
--- a/prototypes/connections/test-splice.c
+++ b/prototypes/connections/test-splice.c
@@ -126,12 +126,15 @@ static void storage(const char *path) {
expect(path, "work", revision, (PureSpan){oracle, length});
CHECK(pure_store_splice(path, "work", revision, 0, length, (PureSpan){0}, PURE_OBJECT_LIMIT, &revision) == PURE_OK);
expect(path, "work", revision, (PureSpan){0});
+#ifndef PURE_STORE_TREE
+ /* Per-object file formats; test-tree-store covers the same limit. */
char file[256];
snprintf(file, sizeof(file), "%s/obj-work", path);
int fd = open(file, O_WRONLY);
const unsigned char maximum[] = {255,255,255,255,255,255,255,127};
CHECK(fd >= 0 && pwrite(fd, maximum, 8, 8) == 8 && close(fd) == 0);
CHECK(pure_store_splice(path, "work", INT64_MAX, 0, 0, (PureSpan){0}, PURE_OBJECT_LIMIT, &revision) == PURE_LIMIT);
+#endif
}
static void runtime(const char *path) {