Mercurial > dovecot > core-2.2
diff src/lib/test-istream-multiplex.c @ 22596:1a7bbda6284b
iostream-multiplex: Check return values in tests
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Fri, 06 Oct 2017 08:52:18 +0300 |
parents | c6c9c24d6182 |
children | cb108f786fb4 |
line wrap: on
line diff
--- a/src/lib/test-istream-multiplex.c Fri Oct 06 08:46:00 2017 +0300 +++ b/src/lib/test-istream-multiplex.c Fri Oct 06 08:52:18 2017 +0300 @@ -265,7 +265,7 @@ { msg, strlen(msg) }, { "\n", 1 } /* newline added for i_stream_next_line */ }; - o_stream_sendv(os, iov, N_ELEMENTS(iov)); + o_stream_nsendv(os, iov, N_ELEMENTS(iov)); } static void test_istream_multiplex_stream_write(struct ostream *channel) @@ -310,6 +310,7 @@ i_stream_unref(&chan0); i_stream_unref(&is); + test_assert(o_stream_nfinish(os) == 0); o_stream_unref(&os); io_loop_destroy(&ioloop);