From: Aki Tuomi Date: Fri, 17 Mar 2017 08:21:25 +0000 (+0200) Subject: test: lib: Check o_stream_flush return value in proxy test X-Git-Tag: 2.3.0.rc1~1839 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c34bdea0d736047ba7bbc835baf4126ea78d5da7;p=thirdparty%2Fdovecot%2Fcore.git test: lib: Check o_stream_flush return value in proxy test Makes static analyzers happier --- diff --git a/src/lib/test-iostream-proxy.c b/src/lib/test-iostream-proxy.c index f212bee2a6..e23a6f6805 100644 --- a/src/lib/test-iostream-proxy.c +++ b/src/lib/test-iostream-proxy.c @@ -66,7 +66,7 @@ void test_iostream_proxy_simple(void) test_assert(proxy != NULL); test_assert(o_stream_send_str(left_out, "hello, world") > 0); - o_stream_flush(left_out); + test_assert(o_stream_flush(left_out) > 0); o_stream_unref(&left_out); test_assert(shutdown(sfdl[0], SHUT_WR) == 0); @@ -78,7 +78,7 @@ void test_iostream_proxy_simple(void) i_stream_skip(right_in, bytes); test_assert(o_stream_send_str(right_out, "hello, world") > 0); - o_stream_flush(right_out); + test_assert(o_stream_flush(right_out) > 0); o_stream_unref(&right_out); test_assert(shutdown(sfdr[0], SHUT_WR) == 0);