summaryrefslogtreecommitdiff
path: root/libmailutils/tests/Makefile.am
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-05-29 08:41:19 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-05-29 11:54:37 +0300
commitf9d6e59d678a540da08c8a7795f45621e9d49a9c (patch)
tree2a4aac70c0d60da5df7a497e96cef513328137f8 /libmailutils/tests/Makefile.am
parente863e55881ccfb534cf057e76c95a9ce4a302eab (diff)
downloadmailutils-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/Makefile.am')
-rw-r--r--libmailutils/tests/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmailutils/tests/Makefile.am b/libmailutils/tests/Makefile.am
index 702d14446..3fda9a4cc 100644
--- a/libmailutils/tests/Makefile.am
+++ b/libmailutils/tests/Makefile.am
@@ -59,6 +59,8 @@ noinst_PROGRAMS = \
strin\
strout\
strtoc\
+ t0-stream\
+ t1-stream\
tempfile\
tcli\
tocrlf\
@@ -167,6 +169,8 @@ TESTSUITE_AT += \
strin.at\
strout.at\
strtoc.at\
+ t0-stream.at\
+ t1-stream.at\
url.at\
url-comp.at\
xml.at\

Return to:

Send suggestions and report system problems to the System administrator.