From 834ca36d4cbbfd63789f7894ab2d5d370347d76f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jun 2020 19:57:10 +0200 Subject: Fix crash when attempting to read before starting --- tests/serd_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/serd_test.c b/tests/serd_test.c index 16209c27..82126c0c 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -679,6 +679,9 @@ test_reader(const char* path) SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0, sink, 4096); assert(reader); + assert(serd_reader_read_document(reader) == SERD_FAILURE); + assert(serd_reader_read_chunk(reader) == SERD_FAILURE); + serd_reader_add_blank_prefix(reader, "tmp"); serd_reader_add_blank_prefix(reader, NULL); -- cgit v1.2.1