From: Timo Sirainen Date: Wed, 23 May 2018 21:40:41 +0000 (+0300) Subject: lib: test-multiplex - Make sure alt istream's final input is read X-Git-Tag: 2.3.9~1815 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd6aa56c60d47678936930252842877252196a52;p=thirdparty%2Fdovecot%2Fcore.git lib: test-multiplex - Make sure alt istream's final input is read Previously the code trusted that the the alt istream's final IO callback was called even after io_loop_stop(). --- diff --git a/src/lib/test-multiplex.c b/src/lib/test-multiplex.c index 77582d865d..6e3927d2be 100644 --- a/src/lib/test-multiplex.c +++ b/src/lib/test-multiplex.c @@ -95,6 +95,7 @@ static void setup_channel(struct test_channel *channel, static void teardown_channel(struct test_channel *channel) { + test_istream_read_alt(channel); test_assert(memcmp(channel->received->data, channel->received_alt->data, channel->received->used) == 0);