]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-ostream-multiplex - Check flush return value
authorAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 12 Jul 2019 07:29:00 +0000 (10:29 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 10 Sep 2019 07:01:59 +0000 (10:01 +0300)
Fixes coverity nit

src/lib/test-ostream-multiplex.c

index 4f5ef02c521a4d3d7568cd8c80a6aa2a71bfdbb4..20feab98aa77cb01c317fd653373dd0be5bd6a68 100644 (file)
@@ -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);