aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader_writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-23 22:07:43 -0400
committerDavid Robillard <d@drobilla.net>2022-10-23 22:07:43 -0400
commitb7e22e9227a83b3c2f925b774f0794084ba526ff (patch)
tree2318533e46082bb5911806a9012a4cb20062de32 /test/test_reader_writer.c
parentd03269378d797ea1f721c102eac39df74e559add (diff)
downloadserd-b7e22e9227a83b3c2f925b774f0794084ba526ff.tar.gz
serd-b7e22e9227a83b3c2f925b774f0794084ba526ff.tar.bz2
serd-b7e22e9227a83b3c2f925b774f0794084ba526ff.zip
Fix crash when trying to read chunks without starting
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r--test/test_reader_writer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index 0ac589f1..52d78e29 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -290,6 +290,8 @@ test_reader(const char* path)
assert(reader);
assert(serd_reader_get_handle(reader) == rt);
+ assert(serd_reader_read_chunk(reader) == SERD_FAILURE);
+
SerdNode g = serd_node_from_string(SERD_URI, USTR("http://example.org/"));
serd_reader_set_default_graph(reader, &g);
serd_reader_add_blank_prefix(reader, USTR("tmp"));