diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-05 16:10:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-05 16:10:57 +0200 |
commit | bbe8d91e695184771d7e45315258fab8eb3e6b07 (patch) | |
tree | 8e28c096028bb762529910c9bbf5203318945134 /src/testdir/test_channel_pipe.py | |
parent | 762f1754370a1278167c8cba6c047ef319fc099c (diff) |
patch 7.4.1902v7.4.1902
Problem: No test for collapsing buffers for a channel. Some text is lost.
Solution: Add a simple test. Set rq_buflen correctly.
Diffstat (limited to 'src/testdir/test_channel_pipe.py')
-rw-r--r-- | src/testdir/test_channel_pipe.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_channel_pipe.py b/src/testdir/test_channel_pipe.py index 5f32506741..639cc6c266 100644 --- a/src/testdir/test_channel_pipe.py +++ b/src/testdir/test_channel_pipe.py @@ -6,6 +6,7 @@ from __future__ import print_function import sys +import time if __name__ == "__main__": @@ -31,6 +32,15 @@ if __name__ == "__main__": if typed.startswith("double "): print(typed[7:-1] + "\nAND " + typed[7:-1]) sys.stdout.flush() + if typed.startswith("split "): + print(typed[6:-1], end='') + sys.stdout.flush() + time.sleep(0.05) + print(typed[6:-1], end='') + sys.stdout.flush() + time.sleep(0.05) + print(typed[6:-1]) + sys.stdout.flush() if typed.startswith("echoerr "): print(typed[8:-1], file=sys.stderr) sys.stderr.flush() |