diff options
author | David Robillard <d@drobilla.net> | 2022-11-24 16:30:10 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-24 16:30:10 -0500 |
commit | cff45ccd27bb024b45f11813f3026b0ee0267690 (patch) | |
tree | 9e3cdd0f224349462024174680c799eb8086cee3 | |
parent | 08d720138d1db1d1d718a0ee746d7fc44dab361d (diff) | |
download | serd-cff45ccd27bb024b45f11813f3026b0ee0267690.tar.gz serd-cff45ccd27bb024b45f11813f3026b0ee0267690.tar.bz2 serd-cff45ccd27bb024b45f11813f3026b0ee0267690.zip |
Check serd_writer_write_statement() return value
-rw-r--r-- | test/test_reader_writer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index 52d78e29..46c6297b 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -269,8 +269,8 @@ test_writer(const char* const path) writer = serd_writer_new( SERD_TURTLE, (SerdStyle)0, env, NULL, serd_file_sink, empty); - // FIXME: error handling - serd_writer_write_statement(writer, 0, NULL, &s, &p, ¬hing, NULL, NULL); + assert(!serd_writer_write_statement( + writer, 0, NULL, &s, &p, ¬hing, NULL, NULL)); assert((size_t)ftell(empty) == strlen("<>\n\t<http://example.org/pred> ")); |