dovecot-2.2: lib-mail: Fixed istream-dot unit test to work with ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 19 11:36:19 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/00df4f6b5222
changeset: 17510:00df4f6b5222
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 19 14:34:54 2014 +0300
description:
lib-mail: Fixed istream-dot unit test to work with the istream-test changes.
diffstat:
src/lib-mail/test-istream-dot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 41e8c66235cf -r 00df4f6b5222 src/lib-mail/test-istream-dot.c
--- a/src/lib-mail/test-istream-dot.c Thu Jun 19 14:02:56 2014 +0300
+++ b/src/lib-mail/test-istream-dot.c Thu Jun 19 14:34:54 2014 +0300
@@ -95,6 +95,9 @@
test_assert(str_len(str) == output_len);
test_assert(memcmp(str_data(str), test->output, output_len) == 0);
+ /* read the data after the '.' line and verify it's still there */
+ i_stream_set_max_buffer_size(test_input, (size_t)-1);
+ (void)i_stream_read(test_input);
data = i_stream_get_data(test_input, &size);
test_assert(size == strlen(test->parent_input));
test_assert(memcmp(data, test->parent_input, size) == 0);
More information about the dovecot-cvs
mailing list