]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: test-istream-tee - verify _read returns correct values after _set_size()
authorPhil Carmody <phil@dovecot.fi>
Thu, 10 Jul 2014 12:59:53 +0000 (15:59 +0300)
committerPhil Carmody <phil@dovecot.fi>
Thu, 10 Jul 2014 12:59:53 +0000 (15:59 +0300)
commit0539ac5ef2313e0271f19871744ed01319f2e7ba
tree4a019c6a28aa858a972b0a134bc9870c2bb3f01d
parent1d020f1c116ce86af2ebd108a453f7bb31240ada
lib: test-istream-tee - verify _read returns correct values after _set_size()
Previously, only an increase of 1 in the size was tested. This ensures that
0 and numbers > 1 are also tested.

Also add _idx to the asserts, so we know where in the loop it failed.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/test-istream-tee.c