aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-24 16:30:10 -0500
committerDavid Robillard <d@drobilla.net>2022-11-24 16:30:10 -0500
commitcff45ccd27bb024b45f11813f3026b0ee0267690 (patch)
tree9e3cdd0f224349462024174680c799eb8086cee3 /test
parent08d720138d1db1d1d718a0ee746d7fc44dab361d (diff)
downloadserd-cff45ccd27bb024b45f11813f3026b0ee0267690.tar.gz
serd-cff45ccd27bb024b45f11813f3026b0ee0267690.tar.bz2
serd-cff45ccd27bb024b45f11813f3026b0ee0267690.zip
Check serd_writer_write_statement() return value
Diffstat (limited to 'test')
-rw-r--r--test/test_reader_writer.c4
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, &nothing, NULL, NULL);
+ assert(!serd_writer_write_statement(
+ writer, 0, NULL, &s, &p, &nothing, NULL, NULL));
assert((size_t)ftell(empty) == strlen("<>\n\t<http://example.org/pred> "));