From cff45ccd27bb024b45f11813f3026b0ee0267690 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 24 Nov 2022 16:30:10 -0500 Subject: Check serd_writer_write_statement() return value --- test/test_reader_writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 ")); -- cgit v1.2.1