diff options
author | David Robillard <d@drobilla.net> | 2020-06-21 19:57:10 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 834ca36d4cbbfd63789f7894ab2d5d370347d76f (patch) | |
tree | 36004ae76c4330f7d26408052efc8ef17daa7767 /tests | |
parent | b244d0ec5895ff15d52f12704e5f336ad37b4473 (diff) | |
download | serd-834ca36d4cbbfd63789f7894ab2d5d370347d76f.tar.gz serd-834ca36d4cbbfd63789f7894ab2d5d370347d76f.tar.bz2 serd-834ca36d4cbbfd63789f7894ab2d5d370347d76f.zip |
Fix crash when attempting to read before starting
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |