aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_overflow.c')
-rw-r--r--test/test_overflow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_overflow.c b/test/test_overflow.c
index 62154958..ac47d239 100644
--- a/test/test_overflow.c
+++ b/test/test_overflow.c
@@ -17,8 +17,12 @@ test_size(SerdWorld* const world,
const SerdSyntax syntax,
const size_t stack_size)
{
+ SerdLimits limits = serd_world_limits(world);
+ limits.reader_stack_size = stack_size;
+ serd_world_set_limits(world, limits);
+
SerdSink* sink = serd_sink_new(NULL, NULL, NULL);
- SerdReader* const reader = serd_reader_new(world, syntax, sink, stack_size);
+ SerdReader* const reader = serd_reader_new(world, syntax, sink);
if (!reader) {
return SERD_BAD_STACK;
}