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.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/test_overflow.c b/test/test_overflow.c
index 851c8289..8534e2c5 100644
--- a/test/test_overflow.c
+++ b/test/test_overflow.c
@@ -24,14 +24,20 @@
static SerdStatus
test(SerdWorld* world, SerdSink* sink, const char* str, size_t stack_size)
{
- SerdByteSource* byte_source = serd_byte_source_new_string(str, NULL);
-
- SerdReader* reader =
- serd_reader_new(world, SERD_TURTLE, SERD_READ_VARIABLES, sink, stack_size);
+ SerdByteSource* const byte_source = serd_byte_source_new_string(str, NULL);
+ SerdEnv* const env = serd_env_new(SERD_EMPTY_STRING());
+ SerdReader* const reader = serd_reader_new(
+ world,
+ SERD_TURTLE,
+ SERD_READ_VARIABLES | SERD_READ_PREFIXED | SERD_READ_RELATIVE,
+ env,
+ sink,
+ stack_size);
serd_reader_start(reader, byte_source);
const SerdStatus st = serd_reader_read_document(reader);
serd_reader_free(reader);
+ serd_env_free(env);
serd_byte_source_free(byte_source);
return st;
}