From: Aki Tuomi Date: Fri, 12 Jul 2019 07:29:00 +0000 (+0300) Subject: lib: test-ostream-multiplex - Check flush return value X-Git-Tag: 2.3.8~184 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f0af5b6d6e36c21dfbd06a71042b4681855932b;p=thirdparty%2Fdovecot%2Fcore.git lib: test-ostream-multiplex - Check flush return value Fixes coverity nit --- diff --git a/src/lib/test-ostream-multiplex.c b/src/lib/test-ostream-multiplex.c index 4f5ef02c52..20feab98aa 100644 --- a/src/lib/test-ostream-multiplex.c +++ b/src/lib/test-ostream-multiplex.c @@ -168,7 +168,7 @@ static void test_ostream_multiplex_cork(void) o_stream_cork(chan0); o_stream_nsendv(chan0, iov, N_ELEMENTS(iov)); o_stream_uncork(chan0); - o_stream_flush(os); + test_assert(o_stream_flush(os) == 1); /* check output */ test_assert(memcmp(output->data, "\0\0\0\0\f", 5) == 0);