diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-05-29 08:41:19 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-05-29 11:54:37 +0300 |
commit | f9d6e59d678a540da08c8a7795f45621e9d49a9c (patch) | |
tree | 2a4aac70c0d60da5df7a497e96cef513328137f8 /libmailutils/tests/.gitignore | |
parent | e863e55881ccfb534cf057e76c95a9ce4a302eab (diff) | |
download | mailutils-f9d6e59d678a540da08c8a7795f45621e9d49a9c.tar.gz mailutils-f9d6e59d678a540da08c8a7795f45621e9d49a9c.tar.bz2 |
libmailutils: fix error in full and line buffer mode
* libmailutils/stream/stream.c (_stream_buffer_full_p): Fix
conditions for buffered streams. The buffer is full if current
pointer (not level) equals the size. For line buffering,
any newline appearing in the written portion of the buffer causes
flushing.
(mu_stream_write): Fix the free space calculation.
* libmailutils/tests/t0-stream.at: New file.
* libmailutils/tests/t0-stream.c: New file.
* libmailutils/tests/t1-stream.at: New file.
* libmailutils/tests/t1-stream.c: New file.
* libmailutils/tests/Makefile.am: Add new testcase.
* libmailutils/tests/testsuite.at: Likewise.
Diffstat (limited to 'libmailutils/tests/.gitignore')
-rw-r--r-- | libmailutils/tests/.gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmailutils/tests/.gitignore b/libmailutils/tests/.gitignore index 3045b1879..4d2380158 100644 --- a/libmailutils/tests/.gitignore +++ b/libmailutils/tests/.gitignore @@ -48,3 +48,5 @@ wordwrap wordsplit-version.h wsp xscript +t0-stream +t1-stream |