aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-09 10:28:59 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commite2d2c7b027ac9ac142ae306d248f2d687df211eb (patch)
treec8326d3deb8b9bb23e2c815d88b917220ef0d85b /tests
parent68b30967872915b93c600e353d2fd6d5fb4987c6 (diff)
downloadserd-e2d2c7b027ac9ac142ae306d248f2d687df211eb.tar.gz
serd-e2d2c7b027ac9ac142ae306d248f2d687df211eb.tar.bz2
serd-e2d2c7b027ac9ac142ae306d248f2d687df211eb.zip
Align nodes with posix_memalign if possible
Diffstat (limited to 'tests')
-rw-r--r--tests/overflow_test.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/tests/overflow_test.c b/tests/overflow_test.c
index 7e545793..917d02bf 100644
--- a/tests/overflow_test.c
+++ b/tests/overflow_test.c
@@ -40,19 +40,21 @@ main(void)
size_t stack_size;
} Test;
- const Test tests[] = {{":s :p :%99 .", 338},
- {":s :p <http://", 336},
- {":s :p eg:foo", 337},
- {":s :p 1234", 307},
- {":s :p 1234", 338},
- {":s :p (1 2 3 4) .", 352},
- {"@prefix eg: <http://example.org> .", 239},
- {":s :p \"literal\"", 336},
- {":s :p \"verb\"", 275},
- {":s :p _:blank .", 307},
- {":s :p true .", 307},
- {":s :p true .", 341},
- {":s :p \"\"@en .", 339},
+ const size_t sizes = 3 * sizeof(size_t);
+
+ const Test tests[] = {{":s :p :%99 .", sizes + 280},
+ {":s :p <http://", sizes + 276},
+ {":s :p eg:foo", sizes + 275},
+ {":s :p 1234", sizes + 177},
+ {":s :p 1234", sizes + 280},
+ {":s :p (1 2 3 4) .", 8 * sizeof(size_t) + 357},
+ {"@prefix eg: <http://example.org> .", sizes + 224},
+ {":s :p \"literal\"", sizes + 264},
+ {":s :p \"verb\"", sizes + 263},
+ {":s :p _:blank .", sizes + 276},
+ {":s :p true .", sizes + 295},
+ {":s :p true .", sizes + 329},
+ {":s :p \"\"@en .", sizes + 302},
{NULL, 0}};
SerdWorld* world = serd_world_new();