From: Aki Tuomi Date: Fri, 17 Mar 2017 08:13:59 +0000 (+0200) Subject: test: lib: Check o_stream_send return value X-Git-Tag: 2.2.29.rc1~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f76d3786a74496476c2db402f324e439abee99d3;p=thirdparty%2Fdovecot%2Fcore.git test: lib: Check o_stream_send return value Make static analyzers happier --- diff --git a/src/lib/test-ostream-escaped.c b/src/lib/test-ostream-escaped.c index e484e89000..4c0e7446cf 100644 --- a/src/lib/test-ostream-escaped.c +++ b/src/lib/test-ostream-escaped.c @@ -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);