]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
test: lib: Check o_stream_send return value
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 17 Mar 2017 08:13:59 +0000 (10:13 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Mar 2017 17:57:04 +0000 (20:57 +0300)
Make static analyzers happier

src/lib/test-ostream-escaped.c

index e484e89000cd53915b0e3e4405f70698ab74e0e1..4c0e7446cff1758e8d1ddb6dece0be30e29b7ae5 100644 (file)
@@ -71,7 +71,7 @@ static void test_ostream_escaped_hex(void)
        os_encode = o_stream_create_escaped(os_sink, ostream_escaped_hex_format);
 
        test_begin("test_ostream_escaped_hex()");
-       o_stream_send_str(os_encode, "hello, world");
+       test_assert(o_stream_send_str(os_encode, "hello, world") == 12);
        o_stream_flush(os_encode);
 
        test_assert(strcmp(str_c(str), "68656c6c6f2c20776f726c64") == 0);